From 3741f71d744a2db8c5f1304c3426b253f8e742bd Mon Sep 17 00:00:00 2001 From: PopGoesTheWza Date: Wed, 12 May 2021 01:03:42 +0200 Subject: [PATCH] fix: unnecessary code caused `help` command to crash --- src/commands/help.ts | 8 -------- src/index.ts | 8 -------- 2 files changed, 16 deletions(-) delete mode 100644 src/commands/help.ts diff --git a/src/commands/help.ts b/src/commands/help.ts deleted file mode 100644 index 69ce97e2..00000000 --- a/src/commands/help.ts +++ /dev/null @@ -1,8 +0,0 @@ -import commander from 'commander'; - -const {outputHelp} = commander; - -/** - * Outputs the help command. - */ -export default async () => outputHelp(); diff --git a/src/index.ts b/src/index.ts index 7a599c13..4279b122 100755 --- a/src/index.ts +++ b/src/index.ts @@ -36,7 +36,6 @@ import create from './commands/create.js'; import defaultCmd from './commands/default.js'; import deploy from './commands/deploy.js'; import deployments from './commands/deployments.js'; -import help from './commands/help.js'; import list from './commands/list.js'; import login from './commands/login.js'; import logout from './commands/logout.js'; @@ -359,13 +358,6 @@ commander .option('--open', 'Open the API Console in the browser') .action(apis); -/** - * Displays the help function. - * @name help - * @example help - */ -commander.command('help').description('Display help').action(help); - /** * Update .clasp.json settings file. * If `newValue` is omitted, it returns the current setting value