-
Notifications
You must be signed in to change notification settings - Fork 153
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the problem you're trying to solve
All Kit CLI commands currently live under cmd/*, with business logic and flag parsing tightly coupled to Cobra. This makes it difficult for other Go programs to import and invoke Kit functionality without shelling out.
Describe the solution you'd like
- Create a new package
pkg/kitexposing public APIs like:func List(ctx context.Context, opts ListOptions) ([]ModelInfo, error) func Push(ctx context.Context, opts PushOptions) error // …etc…
- Refactor each command to delegate to these package functions
- Move data types, validation routines, output-format helpers, and error definitions into pkg/kit.
- Update tests to separate unit tests against pkg/kit APIs in and retain or convert integration tests under cmd/ to ensure the CLI remains unchanged.
- Add documentation with examples for library usage
amisevsk
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request