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

feat: add storage providers commands #62

Merged
merged 6 commits into from
Apr 8, 2024
Merged

feat: add storage providers commands #62

merged 6 commits into from
Apr 8, 2024

Conversation

ps-kwang
Copy link
Contributor

@ps-kwang ps-kwang commented Apr 5, 2024

No description provided.

api/storage-providers.ts Outdated Show resolved Hide resolved
}).run(function* ({ ctx }) {
for (const line of update.help(ctx)) {
yield line;
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the update only updates s3? or why is this one returning a message and we have update/s3?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This way if you type pspace storage-provider update it will give a help message indicating that there's an s3 subcommand.

We only want to do s3 for now, adding DO/others is out of scope and will be after the initial release.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add some description in line 12 about being prompted to select a type.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It actually does prompt already:

kevin@L21C424TL4 cli % bin/macos-arm/pspace  storage-provider update
Update a storage provider.

Usage
  pspace storage-provider update [command]
  pspace storage-provider update [flags]

Available Commands
  help  Show help for a update command
  s3    Update an S3 storage provider

Global Flags
      --api-key   string  A Paperspace public API Key used for authenticating requests
      --api-url   string  A URL for the Paperspace API.
  -h, --help              Show help for a command
  -j, --json              Output JSON
  -l, --log-level string  Enable debug logging

Use "pspace storage-provider update [command] --help" for more information about a command.

@ps-kwang ps-kwang requested a review from ani-ps April 5, 2024 19:30
@ps-kwang ps-kwang merged commit 198690e into main Apr 8, 2024
2 checks passed
@ps-kwang ps-kwang deleted the storage-providers branch April 8, 2024 19:45
Copy link

github-actions bot commented Apr 9, 2024

🎉 This PR is included in version 1.9.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants