Commit graph

  • c4667c9e63 Fixed typo in md output George Kuan 2015-04-25 10:59:26 -07:00
  • cc325c02b5 Merge f411518d3f into 3c187e9045 Brendan Burns 2015-04-22 23:53:13 +00:00
  • f411518d3f Fix a bug where errors were masked. Brendan Burns 2015-04-22 16:51:38 -07:00
  • 3c187e9045 Merge pull request #93 from kennyballou/minor_grammar_fix Eric Paris 2015-04-16 16:19:32 -05:00
  • f491ee284b Fix minor wording issue in README kballou 2015-04-16 15:15:33 -06:00
  • 9cb5e85029 Merge pull request #92 from eparis/sort-valid-args Eric Paris 2015-04-13 17:59:01 -05:00
  • 0fc734c3c5 Sort the valid args before output Eric Paris 2015-04-13 18:44:05 -04:00
  • c0da825198 Merge pull request #87 from eparis/gen-md-doc Eric Paris 2015-04-12 13:45:33 -05:00
  • 8a18f25809 Auto generation of markdown docs! Eric Paris 2015-04-06 23:38:51 -04:00
  • c746d30ef0 Merge pull request #69 from eparis/command-annotations Eric Paris 2015-04-10 23:20:17 -05:00
  • 9ea4cdf081 Merge pull request #91 from PeterDaveHello/patch-1 Eric Paris 2015-04-10 23:20:05 -05:00
  • a40354f0bd Use svg instead of png to get better image quality Peter Dave Hello 2015-04-10 07:15:21 +08:00
  • a068307565 add a helper to annotate a flag as 'required' by a command Eric Paris 2015-03-17 15:14:06 -04:00
  • 9b2e6822e5 Add bash autocompletion generator Eric Paris 2015-03-16 15:31:03 -04:00
  • b78326bb16 Merge pull request #88 from eparis/subhelptest Eric Paris 2015-04-07 18:26:15 -05:00
  • aab4e37189 Merge pull request #89 from eparis/line-in-go-test-error Eric Paris 2015-04-07 17:05:46 -05:00
  • 86a16864ea Add tests about additional help topics Eric Paris 2015-04-07 11:56:08 -04:00
  • c0a9867f76 Merge 5452222cb4 into f576d29563 Eric Paris 2015-04-07 20:07:04 +00:00
  • 9692856020 print line number in go test failures Eric Paris 2015-04-07 15:50:08 -04:00
  • eef7a86b0f Merge 88ff9afb73 into f576d29563 Fabiano Franz 2015-04-07 19:24:53 +00:00
  • 88ff9afb73 Revert handling 'help' string argument as help in all scenarios fabianofranz 2015-04-07 16:24:37 -03:00
  • fee4ba735a Several 'help' fixes fabianofranz 2015-02-03 21:58:10 -02:00
  • f576d29563 Merge pull request #82 from bep/mousetrap Eric Paris 2015-04-06 15:49:03 -05:00
  • 5452222cb4 Require commands to explicitly state they take arbitrary arguments Eric Paris 2015-04-06 14:22:27 -04:00
  • fe1bb9532d Merge 6700cfc859 into 0ea881ce45 Masahiro Sano 2015-04-06 20:18:52 +00:00
  • 0ea881ce45 Merge pull request #60 from dohzya/remove-command Eric Paris 2015-04-06 15:18:42 -05:00
  • bbc51773c3 Merge pull request #77 from eparis/additional-help-topics Eric Paris 2015-04-06 15:04:48 -05:00
  • 794a362808 Remove specail casing in Execute() Eric Paris 2015-04-06 15:24:36 -04:00
  • b9e25fa4a0 Slight formatting change, to make next commit more readable Eric Paris 2015-04-06 14:54:26 -04:00
  • 29e27b1649 Merge pull request #84 from eparis/subcommand-invalid-flag Eric Paris 2015-04-06 14:57:12 -05:00
  • bd0f8a846e Stop special casing runnable root commands Eric Paris 2015-03-28 23:56:22 -04:00
  • fe581720ad New tests (they don't all pass) Eric Paris 2015-04-06 13:43:44 -04:00
  • bcc82fa0dc Merge fddac5a640 into 09b49c329c David Eads 2015-04-03 20:32:07 +00:00
  • 09b49c329c Merge pull request #83 from adammck/fix_double_output_on_unknown_command Eric Paris 2015-04-03 15:28:12 -05:00
  • 2c370cd936 Fix redundant error for unknown root command Adam Mckaig 2015-04-03 01:07:34 -04:00
  • beda1945ad Add mousetrap for Windows users bep 2015-04-01 21:14:40 +02:00
  • be3cf39f80 Set Go version to 1.4.2 in Travis config bep 2015-04-01 19:20:00 +02:00
  • be1667c3f0 Add Go 1.4 to Travis config bep 2015-04-01 19:14:27 +02:00
  • bea8ba9ce6 Update Go versions in Travis config bep 2015-04-01 19:04:27 +02:00
  • 305b4d7292 Merge caba65771b into 79bd93d369 Alexander Thaller 2015-03-30 21:51:50 +00:00
  • fddac5a640 prevent incorrect flag message on bad subcommand parse deads2k 2015-03-26 08:54:00 -04:00
  • 4baca891a5 Merge c0e91ecffb into 79bd93d369 Jeff Lowdermilk 2015-03-23 21:44:42 +00:00
  • 79bd93d369 Add test for persistent bool flag on subcommand Jeff Lowdermilk 2015-03-18 14:42:38 -07:00
  • fd10548830 Fix additional help topics template Eric Paris 2015-03-20 14:47:56 -04:00
  • c64442a487 fix usage template conditional Eric Paris 2015-03-20 13:59:32 -04:00
  • fed99fc6d3 Merge 63a019d93a into 384c059f4b Edgard Castro 2015-03-19 19:30:46 +00:00
  • 384c059f4b Help uses Short message if Long is not available Edgard Castro 2015-03-18 21:50:26 -03:00
  • f81b784738 Make flags declared outside spf13.pflag persistent flags on the parent Eric Paris 2015-03-19 14:18:43 -04:00
  • 63a019d93a Help uses Short message if Long is not available Edgard Castro 2015-03-18 21:50:26 -03:00
  • c0e91ecffb Add test for persistent bool flag on subcommand Jeff Lowdermilk 2015-03-18 14:42:38 -07:00
  • 6f8b208716 Merge b6faef729e into e784a59910 Jason Moiron 2015-03-18 20:12:13 +00:00
  • e784a59910 fix missing newline in help output introduced in bf480fe628 Jason Moiron 2015-03-14 19:44:58 +00:00
  • 908bfeb1d6 Merge b45857769c into 6de96b849c Eric Paris 2015-03-18 15:43:34 +00:00
  • 6de96b849c Default usage output to stdout Eric Paris 2015-03-18 11:16:12 -04:00
  • b45857769c Default usage output to stdout Eric Paris 2015-03-18 11:16:12 -04:00
  • 6264dc67e1 Merge pull request #70 from brendandburns/master Bjørn Erik Pedersen 2015-03-17 00:30:08 +01:00
  • 93278e2f35 Add mergePersistentFlags in strip flags since we now look at the flag set. Brendan Burns 2015-03-16 12:47:32 -07:00
  • b6faef729e fix missing newline in help output introduced in bf480fe628 Jason Moiron 2015-03-14 19:44:58 +00:00
  • 67d4382ef6 Merge 1941a3dd45 into 9e7273d546 Brendan Burns 2015-03-13 17:36:30 +00:00
  • 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 -07:00
  • 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 -07:00
  • 5b56110fb0 Add tests for RemoveCommand Étienne Vallette d'Osia 2015-03-13 16:30:33 +09:00
  • 0e7e122c81 Add README section for RemoveCommand Étienne Vallette d'Osia 2015-03-13 12:40:00 +09:00
  • f479c924b8 Add Command's RemoveCommand method Étienne Vallette d'Osia 2015-03-03 15:50:53 +09:00
  • 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 -07:00
  • 47d6e791a2 Merge e0489d488c into bbdea35c49 Brendan Burns 2015-03-13 02:37:00 +00:00
  • bbdea35c49 Fix stripFlags to be more intelligent about what it parses. Brendan Burns 2015-03-11 11:52:35 -07:00
  • e0489d488c Fix stripFlags to be more intelligent about what it parses. Brendan Burns 2015-03-11 11:52:35 -07:00
  • 68f8dc0c7d Merge e36f81afb0 into 5c9146990b Eric Paris 2015-03-12 23:42:37 +00:00
  • a50948df52 Merge 2c035e3b4a into 5c9146990b Jeff Lowdermilk 2015-03-12 23:42:04 +00:00
  • 5c9146990b Explicitly support local flags overwriting persistent/inherited flags Jeff Lowdermilk 2015-02-27 16:26:56 -08:00
  • 4dbfe2ea7a Merge b6c05a9e39 into f8e1ec56bd Luke Antins 2015-03-05 00:23:15 +00:00
  • 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 +00:00
  • 3116dca893 Merge 511c187450 into f8e1ec56bd Baruch Lubinsky 2015-03-03 14:26:57 +00:00
  • 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 +02:00
  • fd2b84c4e2 Add Command's RemoveCommand method Étienne Vallette d'Osia 2015-03-03 15:50:53 +09:00
  • 2c035e3b4a Explicitly support local flags overwriting persistent/inherited flags Jeff Lowdermilk 2015-02-27 16:26:56 -08:00
  • 548d06a59f Merge 8ebc7437d3 into f8e1ec56bd Eric Paris 2015-02-18 08:19:13 +00:00
  • caba65771b added persistent pre/post commands. Alexander Thaller 2015-02-17 22:09:49 +01:00
  • 50142bdfe4 Merge github.com:spf13/cobra Alexander Thaller 2015-02-17 20:40:08 +01:00
  • f8e1ec56bd new NonInheritedFlags() which give all flags which were not persisted from a parent command Eric Paris 2015-02-13 19:45:00 -05:00
  • b96dd75141 new InheritedFlags() command to tell all flags which persisted from a parent Eric Paris 2015-02-13 19:44:12 -05:00
  • bf480fe628 New "example" section of commands Eric Paris 2015-02-12 18:12:07 -05:00
  • a16cb24999 help displays command names instead of usage in Available Commands Masahiro Sano 2015-02-11 18:20:29 +09:00
  • e36f81afb0 New "example" section of commands Eric Paris 2015-02-12 18:12:07 -05:00
  • 8ebc7437d3 new NonInheritedFlags() which give all flags which were not persisted from a parent command Eric Paris 2015-02-13 19:45:00 -05:00
  • 5049ee8606 new InheritedFlags() command to tell all flags which persisted from a parent Eric Paris 2015-02-13 19:44:12 -05:00
  • 2ca66eccc8 Merge dbfcabb984 into 07a9dc0024 Clayton Coleman 2015-02-11 22:18:39 +00:00
  • 07a9dc0024 Update README.md to describe help behavior without subcommands Clayton Coleman 2015-02-02 14:53:21 -05:00
  • d6ce668ca6 Merge 65f466c09f into bd75ea1d19 Kartik Singhal 2015-02-11 22:17:34 +00:00
  • bd75ea1d19 Updated test corresponding to #49 Kartik Singhal 2015-01-31 21:38:05 +05:30
  • c36f627ba6 Minor English correction Kartik Singhal 2015-01-31 21:33:26 +05:30
  • 2d82d18242 Merge 9a030c638c into efb045ec60 Fabiano Franz 2015-02-11 22:13:05 +00:00
  • efb045ec60 Restores the ability to fetch local only flags fabianofranz 2015-01-29 18:55:29 -02:00
  • 6700cfc859 help displays command names instead of usage in Available Commands Masahiro Sano 2015-02-11 18:20:29 +09:00
  • 930089b7da added pre and post run hooks. Alexander Thaller 2015-02-09 23:44:14 +01:00
  • dbfcabb984 Update README.md to describe help behavior without subcommands Clayton Coleman 2015-02-02 14:53:21 -05:00
  • 65f466c09f Updated test corresponding to #49 Kartik Singhal 2015-01-31 21:38:05 +05:30
  • 38d614f3bb Minor English correction Kartik Singhal 2015-01-31 21:33:26 +05:30
  • 9a030c638c Restores the ability to fetch local only flags fabianofranz 2015-01-29 18:55:29 -02:00