Commit Graph
82 Commits
Author SHA1 Message Date
Steve Francia bfacc59f62 Addressing typos identified by @marckhouzam 2021-11-03 15:36:51 -04:00
Steve Francia 26825627c2 Simplifying goGet function 2021-11-03 15:36:51 -04:00
Steve Francia cf87fc4e30 Updating generator documentation and links
Merging the updated documentation from the user_guide into the cobra/README.md.
Adding links as appropriate to both guides.
2021-11-03 15:36:51 -04:00
Steve Francia c97b7ece0b Update documentation to reflect the module aware generator 2021-11-03 15:36:51 -04:00
Steve Francia 9388e79fb4 Cobra generator now works within Go modules
Pretty major change in behavior, but with modules a change is needed.
Now cobra can initialize and add from within any Go module.
The experience is simplified and streamlined, but requires `go mod init` to happen first.
2021-11-03 15:36:51 -04:00
Steve Francia c9edb78acc Change generator default license to none
It's questionable that a default license makes any sense from a legal perspective.
If the tool created the license without the user choosing it, then it may not even be applicable.
Best to let the user choose their license with intent.
2021-11-03 15:36:51 -04:00
Steve Francia dcf42b25f7 Change generator to require opting in to viper.
Cobra and Viper are great together, but it's not uncommon to use them apart.
New Cobra users don't know better and including Viper by default adds complexity to the skeleton.
2021-11-03 15:36:51 -04:00
Steve Francia c0dd5cdef5 Removing unused imports when not using Viper 2021-11-03 15:36:51 -04:00
Steve Francia bbdcadf158 Add Swarm to Cobra user list 2016-02-08 17:02:59 -05:00
Steve Francia e22a0c9315 Better instructions for the execute inside main() 2015-11-20 17:37:40 -05:00
Steve Francia ec63835b77 Add install instructions for the cobra binary (and library) 2015-11-20 09:55:10 -05:00
spf13 6c0cb34745 Restructure README.md 2015-11-19 08:34:15 -05:00
spf13 5c40aa85ca verbose testing on travis
fixes #157
2015-11-06 11:17:44 -05:00
spf13 2a6ed7a106 utilize filepath.Join liberally
fixes #176
2015-11-06 11:08:12 -05:00
spf13 1d9d665f6f improving project path guessing 2015-11-06 10:44:59 -05:00
Steve Francia a22f212832 Add clearer demo gif 2015-11-03 10:07:00 -05:00
Steve Francia 4f44cb7a62 Add demo gif to readme 2015-11-02 10:55:33 -05:00
Steve Francia ae5c01791c Add logo to readme 2015-11-02 10:53:04 -05:00
spf13 9bd7cfaa66 Fix bug where project name isn't properly detected 2015-10-31 22:04:55 -04:00
Steve Francia 2ab15e2b40 Add popular users and feature list to readme 2015-10-29 13:14:06 -04:00
spf13 8377361429 Add extra feedback on successful initialization 2015-10-28 13:45:33 -04:00
spf13 4f2eaa858f removing some extra prints 2015-10-28 13:45:08 -04:00
spf13 a7defd47ef add add command functionality to cobra 2015-10-28 13:43:58 -04:00
spf13 ea5bc31ac4 Add cobra generator application 2015-10-28 12:51:48 -04:00
spf13 1cb31604a1 small formatting change to readme 2014-12-18 22:41:49 -05:00
Steve Francia b825817fc0 Merge pull request #32 from smarterclayton/hide_subcommand_help_for_root_only_command
When no subcommands are registered, omit command help output
2014-11-12 16:52:16 -05:00
spf13 b1e90a7943 Making prefix matching opt in. 2014-10-07 16:15:19 -04:00
spf13 c2c23ac0bd adding support for prefix matching against aliases & names 2014-10-07 15:41:19 -04:00
spf13 864687ae68 Adding "OnInitialize()" method instead of directly setting a property. Now can have multiple initializers. 2014-07-11 10:57:53 -04:00
spf13 7cebca3761 Add support for an InitializeConfig method as defined on Cobra by the user 2014-06-27 15:45:51 -04:00
spf13 10a8494a87 Support for flags before commands 2014-06-17 12:32:27 -04:00
spf13 07be8145cc Adding support for --help 2014-06-17 12:28:42 -04:00
spf13 3e874b31b7 Test confirming fixed #11 2014-06-13 20:45:55 -04:00
spf13 1a6c5d1d21 Remove "::" from output. Fixed #4 2014-06-13 20:06:09 -04:00
spf13 71bb1dfdcd Cobra behavior is now more consistent. Invalid flags cause Usage to be printed. 2014-06-13 20:00:56 -04:00
spf13 59bd285b5f Documentation update 2014-04-11 10:11:09 -04:00
Steve Francia 1e1ff9e35e Merge pull request #8 from awilliams/master
Right aligns "Use" and "Additional help topics"
2014-01-17 05:19:31 -08:00
Steve Francia 6dd0aa154a Merge pull request #7 from philips/patch-1
fix(README): simple grammar fixup
2014-01-11 22:21:44 -08:00
Steve Francia 88d4f7089f Merge pull request #5 from mcuadros/master
Fixes in example
2014-01-02 09:56:32 -08:00
Steve Francia 56185423c7 Merge pull request #6 from bitdeli-chef/master
Add a Bitdeli Badge to README
2014-01-02 09:56:03 -08:00
spf13 fae133554d Fixing error messaging when upstream flag library is inconsistent. 2013-11-05 20:04:51 -05:00
spf13 2f19d3c266 Added test for (fixed) bug in upstream library pflag 2013-11-05 19:50:47 -05:00
spf13 7216b06e83 Rewrote readme 2013-11-05 12:50:11 -05:00
spf13 79bdde5f6c Refactored code to eliminate need for a commander. Much simpler interface now. 2013-11-01 18:36:24 -04:00
spf13 a2845e7f7a fixed spf13/cobra#1 spf13/hugo#88 2013-09-30 21:54:46 -04:00
spf13 fb5077acbe Better handling of parsing args to commands, especially the root 2013-09-29 02:03:29 -04:00
spf13 2d02c310f3 Help improvements 2013-09-29 02:02:49 -04:00
spf13 6b3d2f2e9a Shorter message when invalid flags provided 2013-09-29 02:01:56 -04:00
spf13 55ff474dee Finding command based on args cleaned up 2013-09-29 01:59:13 -04:00
spf13 74ce44d76e Add ability to cast a command to a commander 2013-09-29 01:57:50 -04:00
spf13 88e482c582 Update read me example 2013-09-29 01:56:04 -04:00
spf13 39583856c0 fix trailing <nil> on help output 2013-09-28 22:42:30 -04:00
spf13 c491be3a31 Adding Travis status image to readme 2013-09-24 17:08:47 -04:00
spf13 0556e5fbf9 Moving cobra_test into package cobra for easier testing 2013-09-24 17:04:00 -04:00
spf13 b6689aaea4 more in the readme 2013-09-24 16:52:33 -04:00
spf13 f0d16a4984 more complete readme 2013-09-24 16:45:20 -04:00
spf13 fb2146e9e5 Add support for help command 2013-09-24 16:03:22 -04:00
spf13 68f3c66d07 Proper handling of flag error messages. Fixing test that wasn't passing. 2013-09-24 13:15:30 -04:00
spf13 62fb674a93 Organize the files a bit better 2013-09-24 12:47:29 -04:00
spf13 88b9d2e5cb Adding support for travis ci 2013-09-24 12:39:05 -04:00
spf13 57fc2cb534 Support and test for custom output. 2013-09-24 12:12:32 -04:00
spf13 b0c5461629 Much improved usage message 2013-09-13 00:09:28 -04:00
spf13 8858462331 Add decent usage message 2013-09-12 10:37:35 -04:00
spf13 6067837866 Adding support for a custom output, default to stderr 2013-09-11 09:52:15 -04:00
spf13 8d87882095 Documentation & housecleaning 2013-09-11 09:52:15 -04:00
spf13 7ba2df2eff Detect and panic if command is setup as it's own child. 2013-09-10 18:28:58 -04:00
spf13 90b975fd8e Rewrote DebugFlags() function 2013-09-10 18:27:31 -04:00
spf13 c5eb49e3f5 Add better persistent flags testing 2013-09-10 18:26:46 -04:00
spf13 061ba30a84 Create and utilize mergePersistentFlags method 2013-09-10 18:26:17 -04:00
Steve Francia ed6206272d Deleting Extra license file... keeping the better formatted one 2013-09-04 11:48:46 -04:00
spf13 3f47f33e39 Testing when given missing flag 2013-09-04 11:32:51 -04:00
spf13 ccbe1b2359 Adding debug flags method to a command & commander 2013-09-04 11:32:51 -04:00
spf13 c568b575aa Better testing support. Easy to reset to blank slate in tests. 2013-09-04 11:32:51 -04:00
spf13 a618569eea Better error handling 2013-09-04 11:32:36 -04:00
spf13 36e08ffd5b Parsing persistentFlags properly (mostly) 2013-09-04 00:15:18 -04:00
spf13 ce6447a965 Properly swallowing flag error messages 2013-09-03 23:28:34 -04:00
spf13 1be06e4e1a Adding a separate command as a run value. 2013-09-03 19:04:50 -04:00
spf13 3d8285f415 ignoring compiled test 2013-09-03 18:57:14 -04:00
spf13 bbb8e6e199 initial commit of cobra w/test suite 2013-09-03 18:54:51 -04:00
spf13 19ec2d48d8 adding license 2013-09-03 18:46:13 -04:00
spf13 8f097506fc adding initial readme content 2013-09-03 18:45:49 -04:00
Steve Francia 7791653039 Initial commit 2013-09-03 13:40:26 -07:00