Commit graph

  • f81b784738 Make flags declared outside spf13.pflag persistent flags on the parent Eric Paris 2015-03-19 14:18:43 -0400
  • 63a019d93a Help uses Short message if Long is not available Edgard Castro 2015-03-18 21:50:26 -0300
  • c0e91ecffb Add test for persistent bool flag on subcommand Jeff Lowdermilk 2015-03-18 14:42:38 -0700
  • 6f8b208716 Merge b6faef729e into e784a59910 Jason Moiron 2015-03-18 20:12:13 +0000
  • e784a59910 fix missing newline in help output introduced in bf480fe628 Jason Moiron 2015-03-14 19:44:58 +0000
  • 908bfeb1d6 Merge b45857769c into 6de96b849c Eric Paris 2015-03-18 15:43:34 +0000
  • 6de96b849c Default usage output to stdout Eric Paris 2015-03-18 11:16:12 -0400
  • b45857769c Default usage output to stdout Eric Paris 2015-03-18 11:16:12 -0400
  • 6264dc67e1 Merge pull request #70 from brendandburns/master Bjørn Erik Pedersen 2015-03-17 00:30:08 +0100
  • 93278e2f35 Add mergePersistentFlags in strip flags since we now look at the flag set. Brendan Burns 2015-03-16 12:47:32 -0700
  • b6faef729e fix missing newline in help output introduced in bf480fe628 Jason Moiron 2015-03-14 19:44:58 +0000
  • 67d4382ef6 Merge 1941a3dd45 into 9e7273d546 Brendan Burns 2015-03-13 17:36:30 +0000
  • 9e7273d546 Remove some wonky error handling, as upstream seems correct now. Also, it's buggy for nested commands. Brendan Burns 2015-03-11 10:22:30 -0700
  • 1941a3dd45 Remove some wonky error handling, as upstream seems correct now. Also, it's buggy for nested commands. Brendan Burns 2015-03-11 10:22:30 -0700
  • 5b56110fb0 Add tests for RemoveCommand Étienne Vallette d'Osia 2015-03-13 16:30:33 +0900
  • 0e7e122c81 Add README section for RemoveCommand Étienne Vallette d'Osia 2015-03-13 12:40:00 +0900
  • f479c924b8 Add Command's RemoveCommand method Étienne Vallette d'Osia 2015-03-03 15:50:53 +0900
  • 2cb625eda3 Remove some wonky error handling, as upstream seems correct now. Also, it's buggy for nested commands. Brendan Burns 2015-03-11 10:22:30 -0700
  • 47d6e791a2 Merge e0489d488c into bbdea35c49 Brendan Burns 2015-03-13 02:37:00 +0000
  • bbdea35c49 Fix stripFlags to be more intelligent about what it parses. Brendan Burns 2015-03-11 11:52:35 -0700
  • e0489d488c Fix stripFlags to be more intelligent about what it parses. Brendan Burns 2015-03-11 11:52:35 -0700
  • 68f8dc0c7d Merge e36f81afb0 into 5c9146990b Eric Paris 2015-03-12 23:42:37 +0000
  • a50948df52 Merge 2c035e3b4a into 5c9146990b Jeff Lowdermilk 2015-03-12 23:42:04 +0000
  • 5c9146990b Explicitly support local flags overwriting persistent/inherited flags Jeff Lowdermilk 2015-02-27 16:26:56 -0800
  • 4dbfe2ea7a Merge b6c05a9e39 into f8e1ec56bd Luke Antins 2015-03-05 00:23:15 +0000
  • b6c05a9e39 Display sub-commands if they are runnable or they have their own sub-commands. Fixes #43 Luke Antins 2015-03-05 00:22:12 +0000
  • 3116dca893 Merge 511c187450 into f8e1ec56bd Baruch Lubinsky 2015-03-03 14:26:57 +0000
  • 511c187450 added a Files field to Command for programs that process files provided as arguments after the flags. Baruch Lubinsky 2015-03-03 16:19:46 +0200
  • fd2b84c4e2 Add Command's RemoveCommand method Étienne Vallette d'Osia 2015-03-03 15:50:53 +0900
  • 2c035e3b4a Explicitly support local flags overwriting persistent/inherited flags Jeff Lowdermilk 2015-02-27 16:26:56 -0800
  • 548d06a59f Merge 8ebc7437d3 into f8e1ec56bd Eric Paris 2015-02-18 08:19:13 +0000
  • caba65771b added persistent pre/post commands. Alexander Thaller 2015-02-17 22:09:49 +0100
  • 50142bdfe4 Merge github.com:spf13/cobra Alexander Thaller 2015-02-17 20:40:08 +0100
  • f8e1ec56bd new NonInheritedFlags() which give all flags which were not persisted from a parent command Eric Paris 2015-02-13 19:45:00 -0500
  • b96dd75141 new InheritedFlags() command to tell all flags which persisted from a parent Eric Paris 2015-02-13 19:44:12 -0500
  • bf480fe628 New "example" section of commands Eric Paris 2015-02-12 18:12:07 -0500
  • a16cb24999 help displays command names instead of usage in Available Commands Masahiro Sano 2015-02-11 18:20:29 +0900
  • e36f81afb0 New "example" section of commands Eric Paris 2015-02-12 18:12:07 -0500
  • 8ebc7437d3 new NonInheritedFlags() which give all flags which were not persisted from a parent command Eric Paris 2015-02-13 19:45:00 -0500
  • 5049ee8606 new InheritedFlags() command to tell all flags which persisted from a parent Eric Paris 2015-02-13 19:44:12 -0500
  • 2ca66eccc8 Merge dbfcabb984 into 07a9dc0024 Clayton Coleman 2015-02-11 22:18:39 +0000
  • 07a9dc0024 Update README.md to describe help behavior without subcommands Clayton Coleman 2015-02-02 14:53:21 -0500
  • d6ce668ca6 Merge 65f466c09f into bd75ea1d19 Kartik Singhal 2015-02-11 22:17:34 +0000
  • bd75ea1d19 Updated test corresponding to #49 Kartik Singhal 2015-01-31 21:38:05 +0530
  • c36f627ba6 Minor English correction Kartik Singhal 2015-01-31 21:33:26 +0530
  • 2d82d18242 Merge 9a030c638c into efb045ec60 Fabiano Franz 2015-02-11 22:13:05 +0000
  • efb045ec60 Restores the ability to fetch local only flags fabianofranz 2015-01-29 18:55:29 -0200
  • 6700cfc859 help displays command names instead of usage in Available Commands Masahiro Sano 2015-02-11 18:20:29 +0900
  • 930089b7da added pre and post run hooks. Alexander Thaller 2015-02-09 23:44:14 +0100
  • dbfcabb984 Update README.md to describe help behavior without subcommands Clayton Coleman 2015-02-02 14:53:21 -0500
  • 65f466c09f Updated test corresponding to #49 Kartik Singhal 2015-01-31 21:38:05 +0530
  • 38d614f3bb Minor English correction Kartik Singhal 2015-01-31 21:33:26 +0530
  • 9a030c638c Restores the ability to fetch local only flags fabianofranz 2015-01-29 18:55:29 -0200
  • e1e66f7b4e Code commentary Ahsanul Haque 2014-12-13 11:05:43 +0600
  • 9b4b849ce9 Merge 61c3d3486f into bb7f17f9b1 Ahsanul Haque 2014-12-19 03:56:39 +0000
  • bb7f17f9b1 Code commentary Ahsanul Haque 2014-12-13 11:05:43 +0600
  • ddb89f6685 Merge f7825f4104 into 4745f1fd64 Anthony Fok 2014-12-19 03:46:42 +0000
  • 4745f1fd64 In execute(), check if command is Runnable() Anthony Fok 2014-12-11 10:06:11 -0700
  • d281de2459 Merge 5ed62f352a into 6e6b6a9c19 Maciej Szulik 2014-12-19 03:43:57 +0000
  • 6e6b6a9c19 Subcommands flag parsing errors print subcommand usage and not root's command usage Maciej Szulik 2014-12-09 14:42:53 +0100
  • 1cb31604a1 small formatting change to readme spf13 2014-12-18 22:41:49 -0500
  • ea9831c676 Fixes to make help topics works. There was code for help topics, but it only kinda sorta worked. The help topics would list all the rest of the commands, help topics on the root command weren't shown, and the hassubcommands would return true even if there were no actual sub commands, only help topics. Nate Finch 2014-12-16 14:56:32 -0500
  • 61c3d3486f Code commentary Ahsanul Haque 2014-12-13 11:05:43 +0600
  • f7825f4104 In execute(), check if command is Runnable() Anthony Fok 2014-12-11 10:06:11 -0700
  • 5ed62f352a Subcommands flag parsing errors print subcommand usage and not root's command usage Maciej Szulik 2014-12-09 14:42:53 +0100
  • 033c83bc5e Subcommands flag parsing errors print subcommand usage and not root's command usage Maciej Szulik 2014-12-09 14:42:53 +0100
  • b825817fc0 Merge pull request #32 from smarterclayton/hide_subcommand_help_for_root_only_command Steve Francia 2014-11-12 16:52:16 -0500
  • 9b6c92647a When no subcommands are registered, omit command help output Clayton Coleman 2014-11-11 23:32:54 -0500
  • b1e90a7943 Making prefix matching opt in. spf13 2014-10-07 16:15:19 -0400
  • e4c12c14e2 Merge c8062f4efa into c2c23ac0bd Joel 2014-10-07 19:46:59 +0000
  • c2c23ac0bd adding support for prefix matching against aliases & names spf13 2014-10-07 15:41:19 -0400
  • 881657297e Replace prefix matching with aliases Sam Ghods 2014-09-25 16:03:34 -0700
  • 83b58a2f9b changed help flag setup to use PersistenFlags so -h will be supported Joel Scoble 2014-09-12 15:43:50 -0500
  • 8efd253144 Merge b73fe687e6 into d8ec18ee74 Sam Ghods 2014-09-25 23:24:09 +0000
  • b73fe687e6 Replace prefix matching with aliases Sam Ghods 2014-09-25 16:03:34 -0700
  • c8062f4efa changed help flag setup to use PersistenFlags so -h will be supported Joel Scoble 2014-09-12 15:43:50 -0500
  • 8e8b3a508f Merge 892b0b2419 into d8ec18ee74 Brad Dickason 2014-09-08 16:00:32 +0000
  • d8ec18ee74 Fixed typo :D Brad Dickason 2014-09-08 07:18:24 -0700
  • 13477ed41a Merge 9ced97f90c into cdafa9f413 Sam Ghods 2014-09-08 15:59:49 +0000
  • cdafa9f413 Print Long description when printing Help, fixes #20 Sam Ghods 2014-09-03 01:24:07 -0700
  • 892b0b2419 Fixed typo :D Brad Dickason 2014-09-08 07:18:24 -0700
  • 9ced97f90c Print Long description when printing Help, fixes #20 Sam Ghods 2014-09-03 01:24:07 -0700
  • 8d72c1e167 Fix typo mistake on README Hugo Leonardo Costa e Silva 2014-08-05 21:28:49 -0300
  • 3cd046cb66 Fix typo mistake on README Hugo Leonardo Costa e Silva 2014-08-05 21:28:49 -0300
  • 864687ae68 Adding "OnInitialize()" method instead of directly setting a property. Now can have multiple initializers. spf13 2014-07-11 10:57:53 -0400
  • 7cebca3761 Add support for an InitializeConfig method as defined on Cobra by the user spf13 2014-06-27 12:27:46 -0400
  • 10a8494a87 Support for flags before commands spf13 2014-06-17 12:32:27 -0400
  • 07be8145cc Adding support for --help spf13 2014-06-17 12:28:42 -0400
  • 3e874b31b7 Test confirming fixed #11 spf13 2014-06-13 20:45:55 -0400
  • 1a6c5d1d21 Remove "::" from output. Fixed #4 spf13 2014-06-13 20:06:09 -0400
  • 71bb1dfdcd Cobra behavior is now more consistent. Invalid flags cause Usage to be printed. spf13 2014-06-13 20:00:56 -0400
  • 74b7a19a41 Merge ac777538f0 into 7ab4fd75e9 Alan Pearce 2014-05-27 18:55:19 +0000
  • 7ab4fd75e9 Fix grammar in readme Alan Pearce 2014-05-27 19:52:47 +0100
  • ac777538f0 Fix grammar in readme Alan Pearce 2014-05-27 19:52:47 +0100
  • 0330aef05c Fix small typo Ryan Cox 2014-05-04 17:01:50 -0700
  • 8f3adc4f38 Fix small typo Ryan Cox 2014-05-04 17:01:50 -0700
  • 59bd285b5f Documentation update spf13 2014-04-11 10:11:09 -0400
  • 69651fcb70 Merge 667c348dbd into e174a40cf5 tummychow 2014-03-26 20:23:25 +0000
  • 667c348dbd Test behavior for subcommand with same name as root command tummychow 2014-03-26 16:19:34 -0400
  • 4c29b190e0 Add basic test for prefix matching tummychow 2014-03-26 04:56:46 -0400