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

tuftool: Add --version option #720

Merged
merged 1 commit into from
Nov 16, 2023
Merged

Conversation

stmcginnis
Copy link
Contributor

Issue #, if available:

Closes #608

Description of changes:

This adds a --version to the tuftool command to print out the tool's version number.

$ tuftool --version
tuftool 0.10.1

$ tuftool --help
This wrapper enables global options and initializes the logger before running any subcommands

Usage: tuftool [OPTIONS] <COMMAND>

Commands:
  clone              Clone a TUF repository, including metadata and some or all targets
  create             Create a TUF repository
  delegation         Delegation Commands
  download           Download a TUF repository's targets
  root               Manipulate a root.json metadata file
  transfer-metadata  Transfer a TUF repository's metadata from a previous root to a new root
  update             Update a TUF repository's metadata and optionally add targets
  help               Print this message or the help of the given subcommand(s)

Options:
  -l, --log-level <log-level>  Set logging verbosity [trace|debug|info|warn|error] [default: info]
  -h, --help                   Print help
  -V, --version                Print version

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

This adds a `--version` to the `tuftool` command to print out the tool's
version number.

Signed-off-by: Sean McGinnis <[email protected]>
@stmcginnis stmcginnis merged commit 08651d6 into awslabs:develop Nov 16, 2023
9 checks passed
@stmcginnis stmcginnis deleted the version branch November 16, 2023 15:27
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.

Surface a version subcommand
3 participants