99 Commits (e485446237011b8abac93919242e6f059ad56c87)

Author SHA1 Message Date
Jesse Szwedko 83497d2cda Merge remote-tracking branch 'origin/master' into v2-merge
8 years ago
Richard Kovacs 4cc2bad36e Display error instead of just say command is incorrect
8 years ago
Shukui Yang 5d108a4435 bug fix when SkipFlagParsing is false and SkipArgReorder is true
8 years ago
Frances Bar 3df4b71842 Backport no argument reordering as an option
8 years ago
Antoine Eiche 94bc26fd1c Refactoring names from bash to shell
8 years ago
Dan Buch df685fbacc
Remove `NewApp` initializer
8 years ago
Dan Buch 3d75e9e711
Go with interfaces + private opaque types
8 years ago
Dan Buch c70993dbc5 Merge branch 'v2' into minimize-struct-copying
8 years ago
Dan Buch a41a43b00f
Switch to fmt.Fprintf for displaying usage error
8 years ago
Dan Buch 8f25dbb615
Ensure all flag aliases are set when Destination given
8 years ago
Dan Buch 61710ff108
Make slice wrapping pattern more consistent
8 years ago
Dan Buch cd10b49473
Minimize struct copying
8 years ago
Dan Buch 81fcf706ea
Replace all "stringly typed" fields with slice equivalents
8 years ago
Dan Buch c19dbaf230
Remove deprecated things and supporting code
8 years ago
Dan Buch 32ebecfbb5
Merge remote-tracking branch 'origin/master' into v2
8 years ago
Matt Farina 07ce8bf79c Cleaned up else per golint
8 years ago
Matt Farina 2f110bd745 Cleaned up exported func comments per golint
8 years ago
Dan Buch bac790c819
Merge remote-tracking branch 'origin/master' into v2
8 years ago
Jesse Szwedko f585ec7cb8 Remove reordering of flags and arguments
8 years ago
Dan Buch 5c641d69b4
Merge branch 'hidden_command' of https://github.com/psmit/cli into psmit-hidden_command
8 years ago
Dan Buch fed78b8bab
Rework of hidden flag impl plus some Action func corrections
8 years ago
Dan Buch e671f0b23b Merge pull request #339 from jack230230/master
8 years ago
王振威 f72d405107 Change Extras to Metadata
8 years ago
Dan Buch d45f7c1fe2
Allow for legacy and newer Action func signatures
8 years ago
Dan Buch f688d47415
Encapsulate ExitCoder check into a lil func
8 years ago
Dan Buch b7329f4968
Switch from multi-return with exit codes to ExitCoder check
8 years ago
Dan Buch a17c8cf1d8
Rename func type suffixes `Fn`->`Func` and add `OnUsageErrorFunc`
8 years ago
Dan Buch 10c8309d84
Merge branch 'develop' of https://github.com/txgruppi/cli into txgruppi-develop
8 years ago
Jesse Szwedko 042842b819 Remove CategorizedHelp from App and allow subcommands to have categories
8 years ago
Soulou a0801792cc Allow to sort commands by category
8 years ago
王振威 88ea7cbec8 Add App extras info
8 years ago
Uwe Dauernheim a755a95d01 Fix semantic typo
8 years ago
Jesse Szwedko d5f087da9d Merge pull request #289 from KSubedi/master
8 years ago
Gregor Noczinski 66c1742012 * Fixed typos
8 years ago
Gregor Noczinski c462071a52 * Added ability to customize usage error messages
8 years ago
leonardyp 6f6e8caf6c Repeat context statement because of a is a pointer
8 years ago
Andreas Kupries bb4e78eb6a Fixed mishandling of a "-"(dash)-argument causing reordering of cli non-flag arguments.
8 years ago
Gregor Noczinski f3c8e07836 Also show help if App/Command Before produces error.
9 years ago
Gregor Noczinski f90cd56647 Handle Before and After of Command without handling it as subCommand if there is no subCommand.
9 years ago
Jesse Szwedko 6191d931b7 When skipping flag parsing, still parse into arguments
9 years ago
Jesse Szwedko bc3cb33cef Actually skip parsing of flags if SkipFlagParsing is set
9 years ago
Nathan LeClaire c538c376c9 Do not return error when flag parsing should be skipped
9 years ago
Kaushal Subedi 8b46886de8 added flag to have a custom text on the USAGE section of help
9 years ago
Tristan Zajonc c7aac252f1 add tests
9 years ago
Tristan Zajonc cc46ca1020 allow overriding help name
9 years ago
Tristan Zajonc aced6e8739 fix tests
9 years ago
Tristan Zajonc ecb0b5ac0a improve help by including parent command for subcommands
9 years ago
Tristan Zajonc ef65245544 add ArgsUsage to App and Command
9 years ago
Tarcísio Gruppi 49c1229409
Added exit code support
9 years ago
Tarcísio Gruppi 9c0db3f4ac
Created types for functions
9 years ago