-
Notifications
You must be signed in to change notification settings - Fork 181
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
Make public command level methods so users can script in go #807
Comments
Linking alternative solution #810 |
From previous discussions, anything made public and GA’d should technically be non breaking and also have test coverage. If there is valid ask and the community is able to come to an agreement that this would benefit the project and is ready to cost/implement then it makes sense to prioritize this item. |
Based on the community call, Billy's cobra-based proposal is accepted. To implement, code refactoring work is required. |
This issue depends on #824. |
What is the version of your ORAS CLI
1.0.0
What would you like to be added?
Make cmd level methods public so that users can write scripts in go instead of shell. What would be required to do this is just expose the commands, associated options and some aspects of
cmd/oras/internal/option
. Users would create options and call the command. For example fororas repo tags
,showTagsOptions
andshowTags
would be made public. The user would also need a way to create aTarget
Why is this needed for ORAS?
Shell is pretty terrible to write, test and maintain. It would be a lot easier in go.
Are you willing to submit PRs to contribute to this feature?
The text was updated successfully, but these errors were encountered: