Skip to content

Commit

Permalink
fix(cli): fix some word case (#742)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyoct authored Feb 7, 2023
1 parent 31ce3f1 commit 27290d4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions cli/src/command/application/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ export function command(): Command {
const cmd = program.command('app')

cmd.command('init <appid>')
.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()
})
Expand Down
12 changes: 6 additions & 6 deletions cli/src/command/function/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ export function command(): Command {
})

cmd.command('create <funcName>')
.description('create function')
.description('Create function')
.option('-w --websocket', 'enable websocket', true)
.option('-m --methods <items...>', 'http methods', ['GET', 'POST'])
.option('-t --tags <items...>', 'tags', [])
.option('-d --description <description>', 'description', '')
.option('-d --description <description>', 'function description', '')
.action((funcName, options) => {
create(funcName, options)
})
Expand All @@ -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)
Expand All @@ -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) {
Expand All @@ -53,7 +53,7 @@ export function command(): Command {
})

cmd.command('exec <funcName>')
.description('Exec function')
.description('exec function')
.option('-l --log <count>', 'print log')
.option('-r --requestId', 'print requestId', false)
.hook('preAction', async () => {
Expand Down
6 changes: 3 additions & 3 deletions cli/src/command/storage/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function bucketCommand(): Command {

cmd.command('pull <bucketName> <outPath>')
.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()
Expand All @@ -44,8 +44,8 @@ export function bucketCommand(): Command {
})

cmd.command('push <bucketName> <inPath>')
.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()
Expand Down

0 comments on commit 27290d4

Please sign in to comment.