53 Commits (main)

Author SHA1 Message Date
Josh Soref 7732a512f9
Spelling (#1543)
2 years ago
Naveen Gogineni 00afca42c8 Add RunAsSubcommand to keep API unchanged
2 years ago
Naveen Gogineni 4a109bc0ce Fix tests
2 years ago
Naveen Gogineni d5947d7814 Initial cut
2 years ago
Naveen Gogineni 02613e50be Fix tests
2 years ago
Naveen Gogineni 194ed2bb9b Remove extra 3 spaces in last line
2 years ago
Naveen Gogineni 8f6acfe15d Componentize template
2 years ago
Naveen Gogineni 6504da449b Add test case
2 years ago
Anatoli Babenia 15b278907e Refactor `wrap()` and add test for empty line
2 years ago
Anatoli Babenia 59d580978e
Fix test for removed trailing whitespace
2 years ago
Naveen Gogineni e925d26b97 Fix:(issue_557) Make help output consistent between different invocations
2 years ago
Naveen Gogineni 8339b59554 Fix: Help name consistency among app/commands and subcommands
2 years ago
dearchap 254c38ea72
Fix:(issue_1293) Wrap usage text for commands (#1460)
2 years ago
Mostyn Bramley-Moore 4fd56cb22d Add word-wrap support, with wrap length provided by the user
2 years ago
Dan Buch e66017d73a
Refinements to removal of zsh hack
2 years ago
Dan Buch c4c15e1453
Writing tests around changes from #1186
2 years ago
Derek Smith 443c6a54a8
fix(UsageText): consistent indent for help UsageText output (#1279)
3 years ago
Steven Imle be9c037806 Added template functions for multi-line Description formatting.
4 years ago
Akihiro Suda 75e7c526bd Add HideHelpCommand
4 years ago
Robert Liebowitz b5bef8e0b6 Merge branch 'clean-help-printer' into help-printer-v2
5 years ago
Robert Liebowitz 9ab178d174 Make app help behavior consistent with commands
5 years ago
Robert Liebowitz bab428af09 Ensure command help always prints with overridden print functions
5 years ago
Ajitem Sahasrabuddhe d870ad6ccb
Fix all tests
5 years ago
Ajitem Sahasrabuddhe c75fee9224
Merge master @1.22.1 with v2
5 years ago
Ajitem Sahasrabuddhe fdba7e0f8c
linter fixes
5 years ago
Dan Buch 47a412375f
Resolved compile-time errors since merging from v1
7 years ago
Dan Buch a61867e5e6
Merge remote-tracking branch 'origin/v1' into merging-from-v1
7 years ago
Jesse Szwedko 48db8e2435 Display UsageText on Commands and Subcommands
7 years ago
Harshavardhana dd3849a7e6 Add tests as requested.
7 years ago
Dan Buch 99621d571e
Merge remote-tracking branch 'origin/v2' into declarativeness
8 years ago
Dan Buch df685fbacc
Remove `NewApp` initializer
8 years ago
Dan Buch 0f135b318e
Merge remote-tracking branch 'origin/v1' into merging-from-v1
8 years ago
Dan Buch be875c395c
Add test to verify help command usage
8 years ago
Dan Buch 3d75e9e711
Go with interfaces + private opaque types
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 6f3bb94eae
Correct assertion text
8 years ago
Dan Buch b9d96954ca
Fix command alias printing in help text
8 years ago
Matt Farina 2f4ec31264 Fixed spelling and gofmt issues
8 years ago
Dan Buch 5a5fa990e1
Merge remote-tracking branch 'origin/master' into exit-nonzero-for-unknown-subcommand
8 years ago
Jesse Szwedko 592f1d97e5 Exit non-zero if a unknown subcommand is given
8 years ago
Dan Buch cc481d6b0e
Adjust command hiding to use similar convention as hidden flags
8 years ago
Dan Buch f397b1618c
Adding test for Command.Hidden handling in help text
8 years ago
Dan Buch b7329f4968
Switch from multi-return with exit codes to ExitCoder check
8 years ago
Dan Buch 10c8309d84
Merge branch 'develop' of https://github.com/txgruppi/cli into txgruppi-develop
8 years ago
Radek Simko d21170f0e3 Never show version if HideVersion=true
8 years ago
elij db7af859d2 make help and version parsing use actual specified values
9 years ago
Edward Sheffler III 8ea1232ede Improve vendoring options by removing self-referential imports in tests.
9 years ago
Martin Falatic dbde3303cf Test updated
9 years ago