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

CLI: Partially switch from wasmer-registry to wasmer-api #4433

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

theduke
Copy link
Contributor

@theduke theduke commented Feb 2, 2024

Refactor commands to use wasmer-api instead of wasmer-registry.

Still WIP.

  • feat(backend-api): Add current user query
  • chore(cli): Refactor whoami+package-download+add commands
  • feat(cli): Use an OS-appropriate cache dir
  • chore(cli): Fix CliCommand to use the output type
  • Clean up init command api access

Refactor the commands from wasmer_registry to wasmer_api.

Part of ongoing cleanup with the goal of removing wasmer_registry.
Previously the CLI used the ".wasmer/cache" as the cache dir.

This commit refactors the code to use an OS-appropriate cache dir
instead, as determined by the `dirs` crate.

On Linux this will be .cache/wasmer
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.

None yet

1 participant