Skip to content
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

Added info about env SPOT_INVENTORY to --help #49

Merged
merged 1 commit into from
May 2, 2023

Conversation

bessarabov
Copy link
Contributor

Tiny addition to --help. Now there is no info about env variable in --help:

$ spot --help
spot v0.9.1-0aa555f-2023-05-02T08:06:47Z
Usage:
  spot [command]

Application Options:
  -p, --file=       playbook file (default: spot.yml) [$SPOT_FILE]
  -t, --task=       task name
  -d, --target=     target name (default: default)
  -c, --concurrent= concurrent tasks (default: 1)
      --timeout=    ssh timeout (default: 30s)
  -i, --inventory=  inventory file or url
  -u, --user=       ssh user
  -k, --key=        ssh key
  -e, --env=        environment variables for all commands
      --skip=       skip commands
      --only=       run only commands
      --dry         dry run
  -v, --verbose     verbose mode
      --dbg         debug mode
  -h, --help        show help

Arguments:
  command:          run ad-hoc command on target hosts

This MR fixes it:

$ ~/git/spot/app/app --help
spot latest
Usage:
  app [command]

Application Options:
  -p, --playbook=   playbook file (default: spot.yml) [$SPOT_PLAYBOOK]
  -t, --task=       task name
  -d, --target=     target name (default: default)
  -c, --concurrent= concurrent tasks (default: 1)
      --timeout=    ssh timeout (default: 30s)
  -i, --inventory=  inventory file or url [$SPOT_INVENTORY]
  -u, --user=       ssh user
  -k, --key=        ssh key
  -e, --env=        environment variables for all commands
      --skip=       skip commands
      --only=       run only commands
      --dry         dry run
  -v, --verbose     verbose mode
      --dbg         debug mode
  -h, --help        show help

Arguments:
  command:          run ad-hoc command on target hosts

@bessarabov bessarabov requested a review from umputun as a code owner May 2, 2023 19:42
@coveralls
Copy link

Pull Request Test Coverage Report for Build 4865114018

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 83.499%

Totals Coverage Status
Change from base Build 4864692463: 0.0%
Covered Lines: 1174
Relevant Lines: 1406

💛 - Coveralls

@umputun umputun merged commit 42e5fb7 into umputun:master May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants