Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fbl

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fbl - npm Package Compare versions

Comparing version 0.4.8 to 0.4.9

dist/src/plugins/flow/ErrorActionHandler.d.ts

2

dist/src/plugins/flow/index.js

@@ -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'
```

137

docs/plugins/prompts.md

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc