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

Provide Package for cmd functions #523

Open
lordshashank opened this issue May 28, 2024 · 3 comments
Open

Provide Package for cmd functions #523

lordshashank opened this issue May 28, 2024 · 3 comments

Comments

@lordshashank
Copy link

We have various important functions in our car cli .
We can provide these utilities in some go-package, as would be quite helpful to people working with car files and building products. We can create package with functions like extract, etc and use them in our cli.

@rvagg
Copy link
Member

rvagg commented May 28, 2024

if you'd like to propose a refactoring that extracts useful functions then please do; I agree that there's a lot of useful functionality bundled up in the cmd package that could be separate—although they are mostly pretty specific to cmd so the utility package should probably be closely related to it, maybe within cmd/ somewhere?

@willscott
Copy link
Member

@lordshashank you mentioned extract as a function you'd like factored out. Are there others you'd like to see callable in the same way?

@lordshashank
Copy link
Author

Yeah so quite helpful features would be extract, root, verify, filter, inspect (returning report items if possible), and list. I mean if you are going for implementation, there would surely be many interdependent functionalities, maybe provide the important ones. For me use cases are these, maybe someone else have others.

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

No branches or pull requests

3 participants