Drop cobra dependency #17

Closed
opened 2025-12-28 18:12:08 +00:00 by sami · 0 comments
Owner

Originally created by @roman-khimov on GitHub (Feb 20, 2024).

I'm always frustrated when we have dependencies we don't really need. The CLI utility to build the DB is rather trivial and normally not intended to be run other than from the Makefile. Which means it can provide less fancy CLI without any problem.

Describe the solution you'd like

Drop cobra, use standard packages to deal with flags. We can even not build the binary, just go run.

Describe alternatives you've considered

Not doing this leaves us with a bit more garbage in go.mod/go.sum than it could be.

Originally created by @roman-khimov on GitHub (Feb 20, 2024). ## Is your feature request related to a problem? Please describe. I'm always frustrated when we have dependencies we don't really need. The CLI utility to build the DB is rather trivial and normally not intended to be run other than from the Makefile. Which means it can provide less fancy CLI without any problem. ## Describe the solution you'd like Drop cobra, use standard packages to deal with flags. We can even not build the binary, just `go run`. ## Describe alternatives you've considered Not doing this leaves us with a bit more garbage in go.mod/go.sum than it could be.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/locode-db#17
No description provided.