Skip to content
This repository has been archived by the owner on Sep 12, 2019. It is now read-only.

add aliases for netlify functions command #50

Merged
merged 1 commit into from
Mar 29, 2019
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
2 changes: 1 addition & 1 deletion src/commands/functions/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class FunctionsBuildCommand extends Command {

FunctionsBuildCommand.description = `build functions locally
`

FunctionsBuildCommand.aliases = ['function:build']
FunctionsBuildCommand.flags = {
functions: flags.string({
char: 'f',
Expand Down
2 changes: 1 addition & 1 deletion src/commands/functions/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ FunctionsCreateCommand.examples = [
'netlify functions:create hello-world',
'netlify functions:create --name hello-world'
]

FunctionsCreateCommand.aliases = ['function:create']
FunctionsCreateCommand.flags = {
name: flags.string({ char: 'n', description: 'function name' }),
functions: flags.string({ char: 'f', description: 'functions folder' }),
Expand Down
2 changes: 1 addition & 1 deletion src/commands/functions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class FunctionsCommand extends Command {
}

const name = chalk.greenBright('`functions`')

FunctionsCommand.aliases = ['function']
FunctionsCommand.description = `Manage netlify functions
The ${name} command will help you manage the functions in this site
`
Expand Down
2 changes: 1 addition & 1 deletion src/commands/functions/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ FunctionsListCommand.description = `list sites
...
Extra documentation goes here
`

FunctionsListCommand.aliases = ['function:list']
FunctionsListCommand.flags = {
name: flags.string({ char: 'n', description: 'name to print' })
}
Expand Down
2 changes: 1 addition & 1 deletion src/commands/functions/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ FunctionsServeCommand.description = `serve functions locally for dev
...
Extra documentation goes here
`

FunctionsServeCommand.aliases = ['function:serve']
FunctionsServeCommand.flags = {
name: flags.string({ char: 'n', description: 'name to print' })
}
Expand Down
2 changes: 1 addition & 1 deletion src/commands/functions/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ FunctionsUpdateCommand.description = `update a function
...
Extra documentation goes here
`

FunctionsUpdateCommand.aliases = ['function:update']
FunctionsUpdateCommand.flags = {
name: flags.string({ char: 'n', description: 'name to print' })
}
Expand Down