cobra-cli icon indicating copy to clipboard operation
cobra-cli copied to clipboard

Can the cobra CLI be changed to specify file name & variable name?

Open johnSchnake opened this issue 2 years ago • 6 comments

Moving from https://github.com/spf13/cobra/issues/1381

For example:

cobra add foo--bar--baz --var-name=foo_bar_bazCmd -p 'parentCmd' // generates cmd/foo--bar--baz.go Similarly, it'd be nice if I can run the cobra command in the current directory instead of the root repo directory, for example like:

~/workspace/my-cli/cmd/subcommand $ cobra add -p 'subcommandCmd' .

johnSchnake avatar Mar 16 '22 06:03 johnSchnake

This issue is being marked as stale due to a long period of inactivity

github-actions[bot] avatar May 16 '22 00:05 github-actions[bot]

This issue is being marked as stale due to a long period of inactivity

github-actions[bot] avatar Sep 27 '22 00:09 github-actions[bot]

This issue is being marked as stale due to a long period of inactivity

github-actions[bot] avatar Nov 28 '22 00:11 github-actions[bot]

This issue is being marked as stale due to a long period of inactivity

github-actions[bot] avatar Jan 29 '23 00:01 github-actions[bot]

This issue is being marked as stale due to a long period of inactivity

github-actions[bot] avatar Mar 31 '23 00:03 github-actions[bot]

This issue is being marked as stale due to a long period of inactivity

github-actions[bot] avatar Jun 01 '23 00:06 github-actions[bot]