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

Add commands to help add tools to the configuration #5

Merged
merged 3 commits into from
Sep 20, 2023

Conversation

wagoodman
Copy link
Contributor

Adds the following commands:

$ binny add --help 

...
Available Commands:
  github-release Add a new tool configuration that sources binaries from GitHub releases
  go-install     Add a new tool configuration from 'go install ...' invocations

Github release help:

Add a new tool configuration that sources binaries from GitHub releases

Usage:
  binny add github-release OWNER/REPO@VERSION [flags]

Flags:
      --constraint string     Version constraint (e.g. '<2.0' or '>=1.0.0')
  -h, --help                  help for github-release
      --verify-sha256         Verifying the sha256 digest of already installed tools (by default xxh64 is used)
  -f, --version-from string   The method to use to resolve the version (available: [github-release goproxy git])

Go install help:

Add a new tool configuration from 'go install ...' invocations

Usage:
  binny add go-install NAME@VERSION --module GOMODULE [--entrypoint PATH] [--ldflags FLAGS] [flags]

Flags:
      --constraint string     Version constraint (e.g. '<2.0' or '>=1.0.0')
  -e, --entrypoint string     Entrypoint within the go module (e.g. cmd/syft)
  -h, --help                  help for go-install
  -l, --ld-flags string       LD flags to pass to the go install command (e.g. -ldflags "-X main.version=1.0.0")
  -m, --module string         Go module (e.g. github.com/anchore/syft)
      --verify-sha256         Verifying the sha256 digest of already installed tools (by default xxh64 is used)
  -f, --version-from string   The method to use to resolve the version (available: [github-release goproxy git])

Signed-off-by: Alex Goodman <[email protected]>
@wagoodman wagoodman merged commit 1831d60 into main Sep 20, 2023
2 checks passed
@wagoodman wagoodman deleted the add-sub-command branch September 20, 2023 19:42
@wagoodman wagoodman added the enhancement New feature or request label Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant