Skip to content

Commit

Permalink
add ability to press Esc to exit - fixes #4
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Sep 29, 2015
1 parent e3e1966 commit dcf1c03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ var chalk = require('chalk');
var inquirer = require('inquirer');
var psList = require('ps-list');
var numSort = require('num-sort');
var escExit = require('esc-exit');

var cli = meow({
help: [
Expand Down Expand Up @@ -61,6 +62,7 @@ function init() {
process.exit(1);
}

escExit();
listProcesses(processes);
});
}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
],
"dependencies": {
"chalk": "^1.1.0",
"esc-exit": "^1.0.0",
"fkill": "^2.0.1",
"inquirer": "^0.9.0",
"meow": "^3.3.0",
Expand Down

0 comments on commit dcf1c03

Please sign in to comment.