Skip to content

Refactor Sveltosctl to use cobra as CLI framework #419

@struegamer

Description

@struegamer

Today sveltosctl is using github.com/docopt/docopt-go as CLI framework.

But docopt-go is a bit outdated, as you can see from it's github commit history.

Therefore I would propose a refactoring towards cobra CLI framework (https://cobra.dev/) as this lib is pretty much the standard CLI framework for GO CLI utils.

Furthermore it has a living community and we can move sveltosctl to be more compatible to certain kubectl patterns.

Some remarks:

  1. It needs to be backwards compatible, means the output of all/certain commands are not changing
  2. it needs to be easily testable, without relying on any k8s clusters, means mocking k8s api.
  3. it needs to be easily extendable, eventually adding a plugin mechanism similar to kubectl.

This issue report should function as a general documentation about the progress.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions