Commit graph

  • b825817fc0 Merge pull request #32 from smarterclayton/hide_subcommand_help_for_root_only_command Steve Francia 2014-11-12 16:52:16 -05:00
  • 9b6c92647a When no subcommands are registered, omit command help output Clayton Coleman 2014-11-11 23:32:54 -05:00
  • b1e90a7943 Making prefix matching opt in. spf13 2014-10-07 16:15:19 -04:00
  • e4c12c14e2 Merge c8062f4efa into c2c23ac0bd Joel 2014-10-07 19:46:59 +00:00
  • c2c23ac0bd adding support for prefix matching against aliases & names spf13 2014-10-07 15:41:19 -04:00
  • 881657297e Replace prefix matching with aliases Sam Ghods 2014-09-25 16:03:34 -07:00
  • 83b58a2f9b changed help flag setup to use PersistenFlags so -h will be supported Joel Scoble 2014-09-12 15:43:50 -05:00
  • 8efd253144 Merge b73fe687e6 into d8ec18ee74 Sam Ghods 2014-09-25 23:24:09 +00:00
  • b73fe687e6 Replace prefix matching with aliases Sam Ghods 2014-09-25 16:03:34 -07:00
  • c8062f4efa changed help flag setup to use PersistenFlags so -h will be supported Joel Scoble 2014-09-12 15:43:50 -05:00
  • 8e8b3a508f Merge 892b0b2419 into d8ec18ee74 Brad Dickason 2014-09-08 16:00:32 +00:00
  • d8ec18ee74 Fixed typo :D Brad Dickason 2014-09-08 07:18:24 -07:00
  • 13477ed41a Merge 9ced97f90c into cdafa9f413 Sam Ghods 2014-09-08 15:59:49 +00:00
  • cdafa9f413 Print Long description when printing Help, fixes #20 Sam Ghods 2014-09-03 01:24:07 -07:00
  • 892b0b2419 Fixed typo :D Brad Dickason 2014-09-08 07:18:24 -07:00
  • 9ced97f90c Print Long description when printing Help, fixes #20 Sam Ghods 2014-09-03 01:24:07 -07:00
  • 8d72c1e167 Fix typo mistake on README Hugo Leonardo Costa e Silva 2014-08-05 21:28:49 -03:00
  • 3cd046cb66 Fix typo mistake on README Hugo Leonardo Costa e Silva 2014-08-05 21:28:49 -03:00
  • 864687ae68 Adding "OnInitialize()" method instead of directly setting a property. Now can have multiple initializers. spf13 2014-07-11 10:57:53 -04:00
  • 7cebca3761 Add support for an InitializeConfig method as defined on Cobra by the user spf13 2014-06-27 12:27:46 -04:00
  • 10a8494a87 Support for flags before commands spf13 2014-06-17 12:32:27 -04:00
  • 07be8145cc Adding support for --help spf13 2014-06-17 12:28:42 -04:00
  • 3e874b31b7 Test confirming fixed #11 spf13 2014-06-13 20:45:55 -04:00
  • 1a6c5d1d21 Remove "::" from output. Fixed #4 spf13 2014-06-13 20:06:09 -04:00
  • 71bb1dfdcd Cobra behavior is now more consistent. Invalid flags cause Usage to be printed. spf13 2014-06-13 20:00:56 -04:00
  • 74b7a19a41 Merge ac777538f0 into 7ab4fd75e9 Alan Pearce 2014-05-27 18:55:19 +00:00
  • 7ab4fd75e9 Fix grammar in readme Alan Pearce 2014-05-27 19:52:47 +01:00
  • ac777538f0 Fix grammar in readme Alan Pearce 2014-05-27 19:52:47 +01:00
  • 0330aef05c Fix small typo Ryan Cox 2014-05-04 17:01:50 -07:00
  • 8f3adc4f38 Fix small typo Ryan Cox 2014-05-04 17:01:50 -07:00
  • 59bd285b5f Documentation update spf13 2014-04-11 10:11:09 -04:00
  • 69651fcb70 Merge 667c348dbd into e174a40cf5 tummychow 2014-03-26 20:23:25 +00:00
  • 667c348dbd Test behavior for subcommand with same name as root command tummychow 2014-03-26 16:19:34 -04:00
  • 4c29b190e0 Add basic test for prefix matching tummychow 2014-03-26 04:56:46 -04:00
  • 96d543cf2c Reset root command lists in testing tummychow 2014-03-26 04:54:47 -04:00
  • f4c075f8f8 Add command name prefix matching tummychow 2014-03-26 04:53:00 -04:00
  • ed47e71aed Merge 98b0a5ab02 into e174a40cf5 Kevin Darlington 2014-02-03 18:54:15 -08:00
  • e174a40cf5 Print root usage when help called with no args. Kevin Darlington 2014-02-02 22:20:55 -05:00
  • 98b0a5ab02 Print root usage when help called with no args. Kevin Darlington 2014-02-02 22:20:55 -05:00
  • 1e1ff9e35e Merge pull request #8 from awilliams/master Steve Francia 2014-01-17 05:19:31 -08:00
  • 2e73a96a48 Right aligns "Use" and "Additional help topics" even if they are longer than the min padding awilliams 2014-01-17 13:36:57 +01:00
  • 6dd0aa154a Merge pull request #7 from philips/patch-1 Steve Francia 2014-01-11 22:21:44 -08:00
  • 2d10990d9e fix(README): simple grammar fixup Brandon Philips 2014-01-11 21:34:06 -08:00
  • 88d4f7089f Merge pull request #5 from mcuadros/master Steve Francia 2014-01-02 09:56:32 -08:00
  • 56185423c7 Merge pull request #6 from bitdeli-chef/master Steve Francia 2014-01-02 09:56:03 -08:00
  • d7f66b2f69 Add a Bitdeli badge to README Bitdeli Chef 2014-01-02 17:58:43 +00:00
  • 1378a36255 Fixes in example Máximo Cuadros 2013-12-21 11:32:14 +01:00
  • fae133554d Fixing error messaging when upstream flag library is inconsistent. spf13 2013-11-05 20:04:51 -05:00
  • 2f19d3c266 Added test for (fixed) bug in upstream library pflag spf13 2013-11-05 19:50:47 -05:00
  • 7216b06e83 Rewrote readme spf13 2013-11-05 12:40:10 -05:00
  • 79bdde5f6c Refactored code to eliminate need for a commander. Much simpler interface now. spf13 2013-11-01 18:36:24 -04:00
  • a2845e7f7a fixed spf13/cobra#1 spf13/hugo#88 spf13 2013-09-30 21:54:46 -04:00
  • fb5077acbe Better handling of parsing args to commands, especially the root spf13 2013-09-29 02:03:29 -04:00
  • 2d02c310f3 Help improvements spf13 2013-09-29 02:02:49 -04:00
  • 6b3d2f2e9a Shorter message when invalid flags provided spf13 2013-09-29 02:01:56 -04:00
  • 55ff474dee Finding command based on args cleaned up spf13 2013-09-29 01:59:13 -04:00
  • 74ce44d76e Add ability to cast a command to a commander spf13 2013-09-29 01:57:50 -04:00
  • 88e482c582 Update read me example spf13 2013-09-29 01:56:04 -04:00
  • 39583856c0 fix trailing <nil> on help output spf13 2013-09-28 22:42:30 -04:00
  • c491be3a31 Adding Travis status image to readme spf13 2013-09-24 17:08:47 -04:00
  • 0556e5fbf9 Moving cobra_test into package cobra for easier testing spf13 2013-09-24 17:04:00 -04:00
  • b6689aaea4 more in the readme spf13 2013-09-24 16:52:33 -04:00
  • f0d16a4984 more complete readme spf13 2013-09-24 16:45:20 -04:00
  • fb2146e9e5 Add support for help command spf13 2013-09-24 16:03:22 -04:00
  • 68f3c66d07 Proper handling of flag error messages. Fixing test that wasn't passing. spf13 2013-09-24 13:15:30 -04:00
  • 62fb674a93 Organize the files a bit better spf13 2013-09-24 12:47:29 -04:00
  • 88b9d2e5cb Adding support for travis ci spf13 2013-09-24 12:39:05 -04:00
  • 57fc2cb534 Support and test for custom output. spf13 2013-09-24 12:12:32 -04:00
  • b0c5461629 Much improved usage message spf13 2013-09-13 00:09:28 -04:00
  • 8858462331 Add decent usage message spf13 2013-09-12 10:32:51 -04:00
  • 6067837866 Adding support for a custom output, default to stderr spf13 2013-09-11 09:51:24 -04:00
  • 8d87882095 Documentation & housecleaning spf13 2013-09-11 09:20:59 -04:00
  • 7ba2df2eff Detect and panic if command is setup as it's own child. spf13 2013-09-10 18:28:58 -04:00
  • 90b975fd8e Rewrote DebugFlags() function spf13 2013-09-10 18:27:31 -04:00
  • c5eb49e3f5 Add better persistent flags testing spf13 2013-09-10 18:26:46 -04:00
  • 061ba30a84 Create and utilize mergePersistentFlags method spf13 2013-09-10 18:26:17 -04:00
  • ed6206272d Deleting Extra license file... keeping the better formatted one Steve Francia 2013-09-04 11:48:46 -04:00
  • 3f47f33e39 Testing when given missing flag spf13 2013-09-04 11:27:10 -04:00
  • ccbe1b2359 Adding debug flags method to a command & commander spf13 2013-09-04 11:26:28 -04:00
  • c568b575aa Better testing support. Easy to reset to blank slate in tests. spf13 2013-09-04 11:25:32 -04:00
  • a618569eea Better error handling spf13 2013-09-04 11:23:13 -04:00
  • 36e08ffd5b Parsing persistentFlags properly (mostly) spf13 2013-09-04 00:15:18 -04:00
  • ce6447a965 Properly swallowing flag error messages spf13 2013-09-03 19:17:58 -04:00
  • 1be06e4e1a Adding a separate command as a run value. spf13 2013-09-03 19:04:50 -04:00
  • 3d8285f415 ignoring compiled test spf13 2013-09-03 18:57:14 -04:00
  • bbb8e6e199 initial commit of cobra w/test suite spf13 2013-09-03 18:54:51 -04:00
  • 19ec2d48d8 adding license spf13 2013-09-03 18:46:13 -04:00
  • 8f097506fc adding initial readme content spf13 2013-09-03 18:45:49 -04:00
  • 7791653039 Initial commit Steve Francia 2013-09-03 13:40:26 -07:00