Skip to content

Fix deprecation warning #34

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
46 changes: 31 additions & 15 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ class StackstormPlugin {
options: {
dockerId: {
usage: 'λ docker container ID',
required: true
required: true,
type: 'string'
}
}
},
Expand All @@ -116,12 +117,14 @@ class StackstormPlugin {
options: {
dockerId: {
usage: 'λ docker container ID',
required: true
required: true,
type: 'string'
},
cmd: {
usage: 'command to execute',
shortcut: 'c',
required: true
required: true,
type: 'string'
}
}
},
Expand All @@ -134,23 +137,28 @@ class StackstormPlugin {
function: {
usage: 'Name of the function',
shortcut: 'f',
required: true
required: true,
type: 'string'
},
path: {
usage: 'Path to JSON or YAML file holding input data',
shortcut: 'p',
type: 'string'
},
data: {
usage: 'Input data',
shortcut: 'd',
required: true
required: true,
type: 'string'
},
passthrough: {
usage: 'Return incoming event as a result instead of running StackStorm action'
usage: 'Return incoming event as a result instead of running StackStorm action',
type: 'boolean'
},
verbose: {
usage: 'Print all the transformation steps',
shortcut: 'v'
shortcut: 'v',
type: 'boolean'
}
}
}
Expand All @@ -171,10 +179,12 @@ class StackstormPlugin {
],
options: {
dockerId: {
usage: 'λ docker container ID'
usage: 'λ docker container ID',
type: 'string'
},
noPull: {
usage: 'Do not pull the docker image'
usage: 'Do not pull the docker image',
type: 'boolean'
}
}
},
Expand All @@ -186,7 +196,8 @@ class StackstormPlugin {
options: {
pack: {
usage: 'Install specific StackStorm pack',
shortcut: 'p'
shortcut: 'p',
type: 'string'
}
}
},
Expand All @@ -197,14 +208,17 @@ class StackstormPlugin {
],
options: {
dockerId: {
usage: 'λ docker container ID'
usage: 'λ docker container ID',
type: 'string'
},
noPull: {
usage: 'Do not pull the docker image'
usage: 'Do not pull the docker image',
type: 'boolean'
},
pack: {
usage: 'Install dependencies for specific pack.',
shortcut: 'p'
shortcut: 'p',
type: 'string'
}
}
}
Expand All @@ -217,10 +231,12 @@ class StackstormPlugin {
],
options: {
action: {
usage: 'Action name'
usage: 'Action name',
type: 'string'
},
pack: {
usage: 'Pack name'
usage: 'Pack name',
type: 'string'
}
}
}
Expand Down