0.1.1-next.6 • Published 2 years ago

@swtdk/plugin-connector v0.1.1-next.6

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Integration Task CLI Plugin

Swimlane Logo

Version Downloads/week License

Usage

$ npm install -g @swtdk/plugin-task
$ swtdk-task COMMAND
running command...
$ swtdk-task (-v|--version|version)
@swtdk/plugin-task/4.5.4 darwin-x64 node-v16.11.0
$ swtdk-task --help [COMMAND]
USAGE
  $ swtdk-task COMMAND
...

Commands

swtdk-task task:generate-inputs

Generate task manifest inputs from test data.

USAGE
  $ swtdk-task task:generate-inputs

OPTIONS
  -a, --append               append new inputs to existing.
  -d, --directory=directory  [default: ./] root directory of the repository.
  -h, --help                 show CLI help
  -n, --name=name            task name to generate inputs.
  -p, --interactive          prompts to add description and required for each input.
  --inputs=inputs            (required) [default: data/undefined.json] input data as JSON

See code: lib/commands/task/generate-inputs.js

swtdk-task task:generate-outputs

Generate a task manifest outputs from test data.

USAGE
  $ swtdk-task task:generate-outputs

OPTIONS
  -a, --append               append new outputs to existing.
  -d, --directory=directory  [default: ./] root directory of the repository.
  -h, --help                 show CLI help
  -n, --name=name            task name to generate outputs.
  --outputs=outputs          (required) [default: data/undefined_output.json] output data as JSON

See code: lib/commands/task/generate-outputs.js

swtdk-task task:run

Use to test a task in an integration

USAGE
  $ swtdk-task task:run

OPTIONS
  -d, --debug=code                   enable debugging
  -d, --directory=directory          [default: ./] current directory to mount
  -f, --force-rebuild                forces nocache on the image build
  -g, --generate                     generates the asset and input files in the current directory
  -h, --help                         show CLI help
  -i, --image=image                  image to use
  -n, --name=name                    task name to run
  -s, --skip-pull                    skips pulling the image
  -t, --generate-test=generate-test  Generate a test case using this run. Provide the name of the test
  -v, --python-version=3.6|3.7       [default: 3.6] python version to use
  --asset=asset                      (required) [default: data/asset.json] asset json
  --inputs=inputs                    (required) [default: data/undefined.json] inputs json
  --pycharm-host=pycharm-host        [default: host.docker.internal] pycharm debugging host
  --pycharm-port=pycharm-port        [default: 30000] pycharm debugging port

See code: lib/commands/task/run.js

swtdk-task task:scaffold-task

Use to scaffold a new task in an integration.

USAGE
  $ swtdk-task task:scaffold-task

OPTIONS
  -d, --directory=directory  [default: ./] directory to scaffold
  -h, --help                 show CLI help
  -n, --name=name            task name
  --copy-task=copy-task      name of the task to copy
  --description=description  description (e.g. CrowdStrike Host Query API)
  --new                      generates a new task

See code: lib/commands/task/scaffold-task.js