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

Commit ed2a52f

Browse files
authored
Merge pull request #50 from netlify/addAliases
add aliases for netlify functions command
2 parents e7eaca9 + bca9fdc commit ed2a52f

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/commands/functions/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class FunctionsBuildCommand extends Command {
3535

3636
FunctionsBuildCommand.description = `build functions locally
3737
`
38-
38+
FunctionsBuildCommand.aliases = ['function:build']
3939
FunctionsBuildCommand.flags = {
4040
functions: flags.string({
4141
char: 'f',

src/commands/functions/create.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ FunctionsCreateCommand.examples = [
4545
'netlify functions:create hello-world',
4646
'netlify functions:create --name hello-world'
4747
]
48-
48+
FunctionsCreateCommand.aliases = ['function:create']
4949
FunctionsCreateCommand.flags = {
5050
name: flags.string({ char: 'n', description: 'function name' }),
5151
functions: flags.string({ char: 'f', description: 'functions folder' }),

src/commands/functions/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class FunctionsCommand extends Command {
3333
}
3434

3535
const name = chalk.greenBright('`functions`')
36-
36+
FunctionsCommand.aliases = ['function']
3737
FunctionsCommand.description = `Manage netlify functions
3838
The ${name} command will help you manage the functions in this site
3939
`

src/commands/functions/list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ FunctionsListCommand.description = `list sites
1818
...
1919
Extra documentation goes here
2020
`
21-
21+
FunctionsListCommand.aliases = ['function:list']
2222
FunctionsListCommand.flags = {
2323
name: flags.string({ char: 'n', description: 'name to print' })
2424
}

src/commands/functions/serve.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ FunctionsServeCommand.description = `serve functions locally for dev
1010
...
1111
Extra documentation goes here
1212
`
13-
13+
FunctionsServeCommand.aliases = ['function:serve']
1414
FunctionsServeCommand.flags = {
1515
name: flags.string({ char: 'n', description: 'name to print' })
1616
}

src/commands/functions/update.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ FunctionsUpdateCommand.description = `update a function
1010
...
1111
Extra documentation goes here
1212
`
13-
13+
FunctionsUpdateCommand.aliases = ['function:update']
1414
FunctionsUpdateCommand.flags = {
1515
name: flags.string({ char: 'n', description: 'name to print' })
1616
}

0 commit comments

Comments
 (0)