Comparing version 0.4.8 to 0.4.9
@@ -12,2 +12,3 @@ "use strict"; | ||
const VirtualFlowActionHandler_1 = require("./VirtualFlowActionHandler"); | ||
const ErrorActionHandler_1 = require("./ErrorActionHandler"); | ||
const version = require('../../../../package.json').version; | ||
@@ -22,2 +23,3 @@ module.exports = { | ||
new AttachedFlowActionHandler_1.AttachedFlowActionHandler(), | ||
new ErrorActionHandler_1.ErrorActionHandler(), | ||
new ForEachFlowActionHandler_1.ForEachFlowActionHandler(), | ||
@@ -24,0 +26,0 @@ new ParallelFlowActionHandler_1.ParallelFlowActionHandler(), |
@@ -15,2 +15,3 @@ # Flow control plugin | ||
- [virtual](#action-handler-virtual) | ||
- [error](#action-handler-error) | ||
@@ -309,2 +310,19 @@ ## Action Handler: Sequential steps execution | ||
test: some_field_value | ||
``` | ||
## Action Handler: Error | ||
Throw error upon execution with given message. | ||
**ID:** `com.fireblink.fbl.flow.error` | ||
**Aliases:** | ||
- `fbl.flow.error` | ||
- `flow.error` | ||
- `error` | ||
**Example:** | ||
```yaml | ||
error: 'message' | ||
``` |
@@ -20,14 +20,15 @@ # CLI Prompts Plugin | ||
```yaml | ||
# [required] confirm message | ||
message: 'Are you sure you want to proceed?' | ||
# [optional] default response | ||
default: false | ||
# [required] assign response to given context fields | ||
assignResponseTo: | ||
# [optional] "ctx" field to assign value to "ctx_field" | ||
ctx: "$.ctx_field" | ||
# [optional] "secrets" field to assign value to "secrets_field" | ||
secrets: "$.secrets_field" | ||
confirm: | ||
# [required] confirm message | ||
message: 'Are you sure you want to proceed?' | ||
# [optional] default response | ||
default: false | ||
# [required] assign response to given context fields | ||
assignResponseTo: | ||
# [optional] "ctx" field to assign value to "ctx_field" | ||
ctx: "$.ctx_field" | ||
# [optional] "secrets" field to assign value to "secrets_field" | ||
secrets: "$.secrets_field" | ||
``` | ||
@@ -50,19 +51,23 @@ | ||
```yaml | ||
# [required] confirm message | ||
message: 'Are you sure you want to proceed?' | ||
# [optional] default response | ||
default: "not sure" | ||
# [optional] json schema validation schema | ||
# note: only "string", "integer" and "number" types are supported | ||
schema: | ||
type: string | ||
# [required] assign response to given context fields | ||
assignResponseTo: | ||
# [optional] "ctx" field to assign value to "ctx_field" | ||
ctx: "$.ctx_field" | ||
# [optional] "secrets" field to assign value to "secrets_field" | ||
secrets: "$.secrets_field" | ||
prompt: | ||
# [required] confirm message | ||
message: 'Are you sure you want to proceed?' | ||
# [optional] whether answer should be masked | ||
password: false | ||
# [optional] default response | ||
default: "not sure" | ||
# [optional] json schema validation schema | ||
# note: only "string", "integer" and "number" types are supported | ||
schema: | ||
type: string | ||
# [required] assign response to given context fields | ||
assignResponseTo: | ||
# [optional] "ctx" field to assign value to "ctx_field" | ||
ctx: "$.ctx_field" | ||
# [optional] "secrets" field to assign value to "secrets_field" | ||
secrets: "$.secrets_field" | ||
``` | ||
@@ -85,21 +90,22 @@ | ||
```yaml | ||
# [required] confirm message | ||
message: 'Pick your age:' | ||
# [optional] default selected option | ||
default: "I don't want to answer" | ||
# [required] list of options user needs to pick answer from | ||
options: | ||
- I don't want to answer | ||
- under 21 | ||
- 21 - 59 | ||
- 60+ | ||
# [required] assign picked value to given context fields | ||
assignResponseTo: | ||
# [optional] "ctx" field to assign value to "ctx_field" | ||
ctx: "$.ctx_field" | ||
# [optional] "secrets" field to assign value to "secrets_field" | ||
secrets: "$.secrets_field" | ||
select: | ||
# [required] confirm message | ||
message: 'Pick your age:' | ||
# [optional] default selected option | ||
default: "I don't want to answer" | ||
# [required] list of options user needs to pick answer from | ||
options: | ||
- I don't want to answer | ||
- under 21 | ||
- 21 - 59 | ||
- 60+ | ||
# [required] assign picked value to given context fields | ||
assignResponseTo: | ||
# [optional] "ctx" field to assign value to "ctx_field" | ||
ctx: "$.ctx_field" | ||
# [optional] "secrets" field to assign value to "secrets_field" | ||
secrets: "$.secrets_field" | ||
``` | ||
@@ -122,19 +128,20 @@ | ||
```yaml | ||
# [required] confirm message | ||
message: 'Select tags:' | ||
# [optional] default selected option | ||
default: ["music"] | ||
# [required] list of options user needs to pick answer from | ||
options: | ||
- music | ||
- art | ||
# [required] assign picked values to given context fields | ||
assignResponseTo: | ||
# [optional] "ctx" field to assign value to "ctx_field" | ||
ctx: "$.ctx_field" | ||
# [optional] "secrets" field to assign value to "secrets_field" | ||
secrets: "$.secrets_field" | ||
multiselect: | ||
# [required] confirm message | ||
message: 'Select tags:' | ||
# [optional] default selected option | ||
default: ["music"] | ||
# [required] list of options user needs to pick answer from | ||
options: | ||
- music | ||
- art | ||
# [required] assign picked values to given context fields | ||
assignResponseTo: | ||
# [optional] "ctx" field to assign value to "ctx_field" | ||
ctx: "$.ctx_field" | ||
# [optional] "secrets" field to assign value to "secrets_field" | ||
secrets: "$.secrets_field" | ||
``` |
{ | ||
"name": "fbl", | ||
"version": "0.4.8", | ||
"version": "0.4.9", | ||
"description": "Command Line tool to automate any kind of work. Originally designed to help with deployments.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1202342
400
14336