diff --git a/cli/src/command/application/index.ts b/cli/src/command/application/index.ts index d48e4e8950..f155ab81d9 100644 --- a/cli/src/command/application/index.ts +++ b/cli/src/command/application/index.ts @@ -5,14 +5,14 @@ export function command(): Command { const cmd = program.command('app') cmd.command('init ') - .description('Initialize application') - .option('-s, --sync', 'Sync application data', false) + .description('initialize application') + .option('-s, --sync', 'sync application data', false) .action((appid, options) => { init(appid, options) }) cmd.command('list') - .description('List application') + .description('list application') .action(() => { list() }) diff --git a/cli/src/command/function/index.ts b/cli/src/command/function/index.ts index 003f6d18ee..d2e55a2232 100644 --- a/cli/src/command/function/index.ts +++ b/cli/src/command/function/index.ts @@ -9,11 +9,11 @@ export function command(): Command { }) cmd.command('create ') - .description('create function') + .description('Create function') .option('-w --websocket', 'enable websocket', true) .option('-m --methods ', 'http methods', ['GET', 'POST']) .option('-t --tags ', 'tags', []) - .option('-d --description ', 'description', '') + .option('-d --description ', 'function description', '') .action((funcName, options) => { create(funcName, options) }) @@ -25,14 +25,14 @@ export function command(): Command { }) cmd.command('list') - .description('List application') + .description('list application') .action(() => { list() }) cmd.command('pull') .argument('[funcName]', 'funcName') - .description('Pull function, if funcName does not exist, pull all') + .description('pull function, if funcName does not exist, pull all') .action((funcName) => { if (funcName) { pullOne(funcName) @@ -42,7 +42,7 @@ export function command(): Command { }) cmd.command('push') - .argument('[FuncName]', 'funcName') + .argument('[funcName]', 'funcName') .description('push function, if funcName does not exist, push all') .action((funcName) => { if (funcName) { @@ -53,7 +53,7 @@ export function command(): Command { }) cmd.command('exec ') - .description('Exec function') + .description('exec function') .option('-l --log ', 'print log') .option('-r --requestId', 'print requestId', false) .hook('preAction', async () => { diff --git a/cli/src/command/storage/index.ts b/cli/src/command/storage/index.ts index a7afcbb8f6..e974cdb23d 100644 --- a/cli/src/command/storage/index.ts +++ b/cli/src/command/storage/index.ts @@ -34,7 +34,7 @@ export function bucketCommand(): Command { cmd.command('pull ') .description('pull file from bucket') - .option('-f, --force', 'force pull', false) + .option('-f, --force', 'force pull', false) //TODO .option('-d, --detail', 'print detail', false) .hook('preAction', async () => { await checkStorageToken() @@ -44,8 +44,8 @@ export function bucketCommand(): Command { }) cmd.command('push ') - .description('push file to bucket') - .option('-f, --force', 'force push', false) + .description('Push file to bucket') + .option('-f, --force', 'force push', false) //TODO .option('-d, --detail', 'print detail', false) .hook('preAction', async () => { await checkStorageToken()