mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
fix(CLI): Fix categorization of service dependent commands
This commit is contained in:
parent
14a2640bd9
commit
a1804f6300
@ -125,6 +125,7 @@ commands.set('deploy', {
|
||||
|
||||
commands.set('deploy function', {
|
||||
usage: 'Deploy a single function from the service',
|
||||
serviceDependencyMode: 'required',
|
||||
options: {
|
||||
'function': {
|
||||
usage: 'Name of the function',
|
||||
@ -151,9 +152,11 @@ commands.set('deploy function', {
|
||||
|
||||
commands.set('deploy list', {
|
||||
usage: 'List deployed version of your Serverless Service',
|
||||
serviceDependencyMode: 'required',
|
||||
});
|
||||
commands.set('deploy list functions', {
|
||||
usage: 'List all the deployed functions and their versions',
|
||||
serviceDependencyMode: 'required',
|
||||
});
|
||||
|
||||
commands.set('info', {
|
||||
@ -241,6 +244,7 @@ commands.set('invoke', {
|
||||
|
||||
commands.set('invoke local', {
|
||||
usage: 'Invoke function locally',
|
||||
serviceDependencyMode: 'required',
|
||||
options: {
|
||||
'function': {
|
||||
usage: 'Name of the function',
|
||||
@ -358,6 +362,7 @@ commands.set('package', {
|
||||
|
||||
commands.set('plugin install', {
|
||||
usage: 'Install and add a plugin to your service',
|
||||
serviceDependencyMode: 'required',
|
||||
options: {
|
||||
name: {
|
||||
usage: 'The plugin name',
|
||||
@ -384,6 +389,7 @@ commands.set('plugin search', {
|
||||
|
||||
commands.set('plugin uninstall', {
|
||||
usage: 'Uninstall and remove a plugin from your service',
|
||||
serviceDependencyMode: 'required',
|
||||
options: {
|
||||
name: {
|
||||
usage: 'The plugin name',
|
||||
@ -446,6 +452,7 @@ commands.set('rollback', {
|
||||
|
||||
commands.set('rollback function', {
|
||||
usage: 'Rollback the function to the previous version',
|
||||
serviceDependencyMode: 'required',
|
||||
options: {
|
||||
'function': {
|
||||
usage: 'Name of the function',
|
||||
@ -469,7 +476,6 @@ commands.set('rollback function', {
|
||||
|
||||
commands.set('slstats', {
|
||||
usage: 'Enable or disable stats',
|
||||
serviceDependencyMode: 'required',
|
||||
options: {
|
||||
enable: {
|
||||
usage: 'Enable stats ("--enable")',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user