Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Migrate to urfave/cli #85

Closed
Closed
@cmoog

Description

@cmoog

Although https://github.com/cdr/cli offers a minimal wrapper, it's becoming clear that it lacks sufficient features for the growing scope of coder-cli. I propose we migrate to https://github.com/spf13/cobra https://github.com/urfave/cli. Consider a few advantages that we'll gain "out of the box".

  • Suggestions when "unknown command" happens
  • bash, zsh, fish, and powershell completion generation
  • well designed and standard command validation abstractions
  • better persistent flag abstractions
  • no more interface upgrading nonsense
  • the model of a separate type per command is flawed and, given the lack of generics, is very difficult to abstract

Any thoughts / objections? cc @scsmithr @nhooyr @ammario

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions