ManageIQ / floe

Floe is a runner for Amazon States Language workflows
Apache License 2.0
0 stars 6 forks source link

extra cli options #147

Closed kbrock closed 9 months ago

kbrock commented 11 months ago

Before

Usage: floe [options] workflow input [workflow2 input2]

v0.7.0

Options:
  -w, --workflow=<s>                  Path to your workflow json (legacy)
  -i, --input=<s>                     JSON payload to input to the workflow (legacy)
  -c, --credentials=<s>               JSON payload with credentials
  -r, --credentials-file=<s>          Path to a file with credentials
  -d, --docker-runner=<s>             Type of runner for docker images (default: docker)
  -o, --docker-runner-options=<s+>    Options to pass to the runner
  -v, --version                       Print version and exit
  -h, --help                          Show this message

After

Usage: floe [options] workflow input [workflow2 input2]

v0.7.0

Options:
  -w, --workflow=<s>                  Path to your workflow json (legacy)
  -i, --input=<s>                     JSON payload to input to the workflow (legacy)
  -c, --credentials=<s>               JSON payload with credentials
  -e, --credentials-file=<s>          Path to a file with credentials
  -r, --docker-runner=<s>             Type of runner for docker images
  -o, --docker-runner-options=<s+>    Options to pass to the runner
  -d, --docker                        Use docker to run images     (short for --docker_runner=docker)
  -p, --podman                        Use podman to run images     (short for --docker_runner=podman)
  -k, --kubernetes                    Use kubernetes to run images (short for --docker_runner=kubernetes)
  -v, --version                       Print version and exit
  -h, --help                          Show this message
kbrock commented 11 months ago

update:

kbrock commented 11 months ago

Todo:

Prep for multiple workflows

kbrock commented 11 months ago

update:

Fryguy commented 11 months ago

Gah I commented in the wrong place - see https://github.com/ManageIQ/floe/pull/149#pullrequestreview-1770543621

kbrock commented 11 months ago

update:

ok, I used the TYPES value to drive the shortcuts. is this too cryptic?

kbrock commented 11 months ago

update:

kbrock commented 11 months ago

ugh. sorry, got confused, usage gets changed in the other pr. (that is why it was missing...)

update:

kbrock commented 11 months ago

update:

kbrock commented 10 months ago

Updates:

I like it how it is.

But there are a few possible changes:

miq-bot commented 10 months ago

Checked commit https://github.com/kbrock/floe/commit/e2557017ca6dd7d3bbb7c125fc9f919eb18370b1 with ruby 2.7.8, rubocop 1.56.3, haml-lint 0.51.0, and yamllint 0 files checked, 0 offenses detected Everything looks fine. :cake:

kbrock commented 10 months ago

update:

Outstanding