envd icon indicating copy to clipboard operation
envd copied to clipboard

feat(CLI): Use positional arguments in envd destroy and so on

Open gaocegege opened this issue 3 years ago • 3 comments

Description

Now the destroy command does not look great:

envd destroy --name {name}

Expected:

envd destroy {name}

We should wait until https://github.com/urfave/cli/issues/1074 is resolved.


Message from the maintainers:

Love this enhancement proposal? Give it a 👍. We prioritise the proposals with the most 👍.

gaocegege avatar Oct 21 '22 03:10 gaocegege

Maybe, we should migrate to https://github.com/spf13/cobra

It supports this feature.

gaocegege avatar Dec 23 '22 07:12 gaocegege

Maybe, we should migrate to https://github.com/spf13/cobra

It supports this feature.

LGTM. A huge refactor.

kemingy avatar Dec 23 '22 08:12 kemingy

urfave/cli may have better shell-completion (both bash and zsh) support.

kemingy avatar Dec 23 '22 08:12 kemingy