Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Get rid of cobra for CLI work #3

Open
karuppiah7890 opened this issue Aug 23, 2020 · 0 comments
Open

Get rid of cobra for CLI work #3

karuppiah7890 opened this issue Aug 23, 2020 · 0 comments
Labels
good first issue Good for newcomers

Comments

@karuppiah7890
Copy link
Owner

I realized that cobra might be a little too much for the set of features I want to use. I think something lighter than cobra could do the work.

Actually I'm just showing help, and running the command. I'm not even having any flags to parse. And flag parsing can be done with standard library too. And I have only one command, no sub commands etc.

I just liked the way cobra showed the help and stuff though. It was one reason why I didn't use other CLI frameworks. But I didn't realize that we almost don't need a framework. Almost. Framework is probably just too much and is just going put a lot of weight on the binary size.

The two options are -

  • Checkout no framework and write plain code
  • Use a very very light framework for just the work that's needed to be done

Goal:

  • Use something lighter and simple
  • Make the binary size smaller
@karuppiah7890 karuppiah7890 added the good first issue Good for newcomers label Aug 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant