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: Add functionality to operate on Variables #301

Closed
rajdip-b opened this issue Jun 27, 2024 · 6 comments · Fixed by #514
Closed

CLI: Add functionality to operate on Variables #301

rajdip-b opened this issue Jun 27, 2024 · 6 comments · Fixed by #514
Assignees
Labels
difficulty: 3 hacktoberfest Hacktoberfest is on! priority: high released scope: cli Everything related to the CLI type: feature Release drafter tag for tagging PRs related to adding new features

Comments

@rajdip-b
Copy link
Member

rajdip-b commented Jun 27, 2024

Description

We would like to perform the following operations for variable using our CLI:

  • List all variables under a project (keyshade variable list <projectId>)
  • Fetch all revisions of a variable (keyshade variable revisions <variableId>)
  • Create a variable (keyshade variable create <projectId>(refer postman for parameters))
  • Update a variable (keyshade variable update <variableId> (refer postman for parameters))
  • Rollback a variable (keyshade variable rollback <variableId> --environment-slug/-e <> --version/-v <>)
  • Delete a variable (keyshade variable delete <variableId>)

Solution

  • Create an implementation of command.interface.ts and name if VariableCommand.
  • Stash all the functions in src/commands/variable.
  • Use the variableController from ControllerInstance to make the API calls.
@rajdip-b rajdip-b added type: feature Release drafter tag for tagging PRs related to adding new features priority: high foss hack Clustering all the curated issues for Foss Hack 2024 difficulty: 3 scope: cli Everything related to the CLI and removed foss hack Clustering all the curated issues for Foss Hack 2024 labels Jun 27, 2024
@rajdip-b rajdip-b added the hacktoberfest Hacktoberfest is on! label Oct 1, 2024
@anudeeps352
Copy link
Contributor

/attempt

Copy link

Assigned the issue to @anudeeps352!

@anudeeps352
Copy link
Contributor

Btw I thought I'd take this up since I'm already doing the secrets thing on CLI.Kinda similiar right.So it would be easier ig

@rajdip-b
Copy link
Member Author

SGTM

@anudeeps352
Copy link
Contributor

@rajdip-b I've linked the pr. Do check it out when you're available

@rajdip-b
Copy link
Member Author

rajdip-b commented Nov 5, 2024

🎉 This issue has been resolved in version 2.7.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
difficulty: 3 hacktoberfest Hacktoberfest is on! priority: high released scope: cli Everything related to the CLI type: feature Release drafter tag for tagging PRs related to adding new features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants