Skip to content

Commit

Permalink
feat: removing -X/--force-exit option
Browse files Browse the repository at this point in the history
  • Loading branch information
PopGoesTheWza committed Mar 21, 2021
1 parent 65c1726 commit 0de9a2b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ import {PROJECT_NAME} from './constants';
import {spinner, stopSpinner} from './utils';

let beforeExit = () => {};
let onExit = () => {};

// instantiate the config singleton (and loads environment variables as a side effect)
const {auth, ignore, project} = Conf.get();
Expand Down Expand Up @@ -110,13 +109,6 @@ commander.option('-W, --why', `Display some debugging info upon exit.`).on('opti
beforeExit = why.dump;
});

/**
* Display some debugging info upon exit.
*/
commander.option('-X, --force-exit', `Force process.exit().`).on('option:force-exit', () => {
onExit = process.exit;
});

/**
* Logs the user in. Saves the client credentials to an rc file.
* @name login
Expand Down Expand Up @@ -433,5 +425,4 @@ if (args.length === 0) {
spinner.clear();

beforeExit();
onExit();
})();

0 comments on commit 0de9a2b

Please sign in to comment.