Commit Graph

43 Commits

Author SHA1 Message Date
Dan Buch
f7b2b93ffa
Merge remote-tracking branch 'origin/v1' into merging-from-v1 2016-07-14 17:50:16 -04:00
Dan Buch
c3b03b8437
Adding flag type generation for altsrc
and a mention of this whole thing in the change log
2016-07-11 06:02:49 -04:00
Dan Buch
3a8ad862a6
Add help text/docs for generate-flag-types script 2016-07-10 12:26:09 -04:00
Dan Buch
6185b8d8fd
Generate code for flag types and context accessors 2016-06-23 00:56:44 -04:00
Dan Buch
df685fbacc
Remove NewApp initializer
and move defaulting to `App.Setup`
2016-06-22 12:47:57 -04:00
Dan Buch
fed78b8bab
Rework of hidden flag impl plus some Action func corrections 2016-05-01 08:36:17 -04:00
Dan Buch
f3e55a0783
Move error types to errors.go 2016-04-27 09:13:52 -04:00
Dan Buch
b7329f4968
Switch from multi-return with exit codes to ExitCoder check 2016-04-27 09:12:34 -04:00
Jesse Szwedko
7ed7a51f86 Aggregate errors from Before/After
Previously `After` would overwrite any error from `Before`.
2015-06-01 21:14:53 -07:00
Jeremy Saenz
ed1ee94250 Adding some docs 2013-07-20 15:50:13 -07:00
Jeremy Saenz
6664835bc1 JMS #14: Moving toward having and app object 2013-07-19 08:34:01 -07:00
Jeremy Saenz
c15c42a7a8 JMS #4: Command.HasName 2013-07-18 19:30:18 -07:00
Jeremy Saenz
4495e2e996 JMS #4: Delegating to Command.Run 2013-07-18 19:23:00 -07:00
Jeremy Saenz
87d3b81d55 JMS #4: Parsing arguments for subcommands as well 2013-07-18 19:17:33 -07:00
Jeremy Saenz
59b0ce24ef JMS #4: Support for global flags in cli.Context 2013-07-18 18:00:52 -07:00
Jeremy Saenz
3119b075d6 JMS #4: Flag testing 2013-07-18 17:41:22 -07:00
Jeremy Saenz
3f76896c4f JMS #4: Getting some cli tests going. Testing out flags 2013-07-18 17:41:22 -07:00
Jeremy Saenz
04496e4364 JMS #4: More WIP 2013-07-18 17:41:22 -07:00
Jeremy Saenz
3b0fc03a67 JMS #4: Support for flag handling on command line 2013-07-18 17:41:22 -07:00
Jeremy Saenz
6f22315082 JMS #4: Parsing command flags with context 2013-07-18 17:41:22 -07:00
Jeremy Saenz
5f85917dc2 JMS #4: TDD Our options map 2013-07-18 17:41:22 -07:00
Jeremy Saenz
e2733adc45 JMS #4: Kinda parsing flags now 2013-07-18 17:41:21 -07:00
Jeremy Saenz
96f806fd22 JMS #3: Passing a context struct instead of a string 2013-07-16 08:12:12 -07:00
Jeremy Saenz
e2de64ea4d JMS #2: Formmating 2013-07-16 07:54:11 -07:00
Jeremy Saenz
4ab8f6b3e2 JMS #2: Renamed "Action" type to handler. 2013-07-16 07:52:55 -07:00
Jeremy Saenz
921da63e2e Support for global flags in help text 2013-07-14 19:16:30 -07:00
Jeremy Saenz
16bf6d4f76 Formatting 2013-07-14 18:19:53 -07:00
Jeremy Saenz
5a624affb8 Yo dawg, I heard you liked the help command...
So I described the help command in your help command
so you can help command while you help command
2013-07-14 18:17:15 -07:00
Jeremy Saenz
bdb9c5ab61 Support for shortnames 2013-07-14 18:00:03 -07:00
Jeremy Saenz
6fa7cfa8a6 Removed commandswithdefaults method 2013-07-14 17:53:59 -07:00
Jeremy Saenz
5b788be8a6 Formatted help text via templates 2013-07-14 17:37:43 -07:00
Jeremy Saenz
6016cafda3 Removed application object, help formatting 2013-07-14 16:30:58 -07:00
Jeremy Saenz
ef5944640e Getting help in there 2013-07-14 08:15:40 -07:00
Jeremy Saenz
04c645f6c6 Accepting Arg string in App.Run 2013-07-14 07:42:37 -07:00
Jeremy Saenz
0c14bbdc56 More renaming. trying to keep consistent with Flags API 2013-07-14 07:35:08 -07:00
Jeremy Saenz
e72d8e22aa Experimenting with some names 2013-07-14 07:12:21 -07:00
Jeremy Saenz
372b86498f Turning cli into a package 2013-07-13 13:07:14 -07:00
Jeremy Saenz
e830a4195e Formatting 2013-07-13 12:57:04 -07:00
Jeremy Saenz
994660f605 Using anon functions and calling run altogether 2013-07-13 12:53:01 -07:00
Jeremy Saenz
6efb9862ea Attempting to make the composite literals pretty 2013-07-13 12:41:53 -07:00
Jeremy Saenz
19158640aa Formatting 2013-07-13 12:32:54 -07:00
Jeremy Saenz
360e387071 Got a semi working command line setup. 2013-07-13 12:30:21 -07:00
Jeremy Saenz
460c0de4ea Initial commit. Just sketching some possible API ideas 2013-07-13 12:13:48 -07:00