Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): fix some word case #742

Merged
merged 1 commit into from
Feb 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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