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

Implement 'wkg get' #18

Merged
merged 2 commits into from
May 17, 2024
Merged

Implement 'wkg get' #18

merged 2 commits into from
May 17, 2024

Conversation

lann
Copy link
Collaborator

@lann lann commented May 16, 2024

$ wkg get wasi:http
No version specified; fetching version list...
Getting wasi:[email protected]...
Wrote './[email protected]'
$ wkg get --registry wow.wa.dev wow:[email protected]
Getting wow:[email protected]...
Wrote './[email protected]'
$ wkg get --help
Get a package

Usage: wkg get [OPTIONS] <PACKAGE_SPEC>

Arguments:
  <PACKAGE_SPEC>  The package to get, specified as <namespace>:<name> plus optional @<version>, e.g.
                  "wasi:cli" or "wasi:[email protected]"

Options:
  -o, --output <OUTPUT>    Output path. If this ends with a '/', a filename based on the package
                           name, version, and format will be appended, e.g.
                           `[email protected]`` [default: ./]
      --format <FORMAT>    Output format. The default of "auto" detects the format based on the
                           output filename or package contents [default: auto] [possible values:
                           auto, wasm, wit]
      --overwrite          Overwrite any existing output file
      --registry <DOMAIN>  The registry domain to use. Overrides configuration file(s)
  -h, --help               Print help

@lann lann merged commit c26b247 into main May 17, 2024
2 checks passed
@lann lann deleted the wkg-get branch May 17, 2024 12:04
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.

2 participants