mirror of
https://github.com/spf13/cobra
synced 2025-05-05 04:47:22 +00:00
Commit graph
Select branches
Hide pull requests
dependabot/github_actions/codelytv/pr-size-labeler-1.10.0
dependabot/github_actions/golangci/golangci-lint-action-6.0.1
main
v1.6.x
v1.9.0-dep-updates
#100
#1001
#1003
#1004
#1005
#1009
#101
#101
#1010
#1012
#1014
#1016
#102
#1020
#1020
#1023
#1023
#1028
#103
#103
#1032
#1034
#1035
#1037
#1039
#104
#1040
#1044
#1048
#105
#1053
#1058
#106
#1062
#1063
#1065
#1068
#1070
#1072
#1073
#1074
#1075
#1078
#108
#108
#1080
#1082
#1087
#1088
#1089
#109
#1090
#1094
#1095
#1097
#1099
#110
#110
#1103
#1104
#1106
#1108
#1110
#1112
#1113
#1117
#1118
#112
#1122
#1123
#1125
#1128
#1135
#1136
#1139
#1142
#1143
#1144
#1145
#1146
#1147
#115
#1150
#1153
#1154
#1157
#1157
#1158
#1159
#116
#1161
#1162
#1163
#1164
#1166
#1169
#117
#117
#1171
#1173
#1175
#118
#1181
#1183
#1184
#1185
#1187
#1188
#119
#1190
#1192
#1196
#1199
#12
#12
#120
#120
#1200
#1205
#1207
#1208
#121
#1210
#1210
#1213
#1217
#1217
#122
#1224
#1228
#1231
#1231
#1233
#1234
#1237
#1245
#1245
#1247
#1249
#1253
#1255
#1256
#1258
#1259
#126
#1261
#1265
#127
#1270
#1273
#1274
#128
#1280
#1282
#1284
#1292
#13
#13
#130
#130
#1301
#1305
#1308
#1309
#1310
#1312
#1314
#1317
#132
#1321
#1323
#133
#1333
#1337
#1338
#1339
#134
#1340
#1342
#1347
#1347
#1349
#135
#1350
#1351
#1352
#1356
#1357
#1357
#1359
#1359
#136
#1360
#1363
#1364
#1365
#1366
#137
#1371
#1372
#1377
#138
#1380
#1387
#139
#1390
#1392
#14
#14
#1403
#1404
#1406
#1407
#141
#1411
#1414
#1417
#1420
#1423
#1425
#1426
#1427
#1428
#1429
#143
#1430
#1431
#1432
#1433
#1434
#1436
#1438
#144
#144
#1441
#1444
#1446
#1447
#145
#1450
#1451
#1453
#1454
#1455
#1456
#1459
#146
#1460
#1463
#1467
#1468
#147
#147
#1470
#1471
#1473
#1477
#1478
#148
#1481
#1482
#1485
#1487
#149
#1495
#1495
#1497
#1498
#150
#1500
#1501
#1503
#1504
#1504
#1506
#1509
#151
#1510
#1511
#1511
#1512
#1513
#1514
#1515
#1517
#152
#1520
#1522
#1523
#1524
#1525
#1528
#153
#1530
#1533
#1536
#1539
#154
#1540
#1541
#1545
#1547
#1549
#1549
#155
#155
#1550
#1550
#1551
#1552
#1553
#1554
#1557
#1558
#1559
#1560
#1561
#1563
#1567
#1568
#1568
#1571
#1572
#1572
#1574
#1575
#1576
#1579
#158
#1581
#1582
#1583
#1584
#159
#1591
#1593
#160
#1604
#1605
#1608
#1609
#1610
#1612
#1613
#1615
#1618
#1619
#1620
#1621
#1623
#1624
#1625
#163
#1632
#1632
#1634
#1635
#1639
#164
#1640
#1642
#1643
#1645
#1646
#1647
#1654
#1656
#1659
#1660
#1661
#1662
#1662
#1664
#1664
#1665
#1668
#167
#1672
#1675
#1675
#1678
#168
#168
#1681
#1682
#1683
#1684
#1685
#1686
#1688
#1689
#169
#1690
#1691
#1692
#1693
#1695
#1697
#1698
#1698
#170
#170
#1700
#1702
#1707
#1709
#1713
#1716
#1716
#1719
#172
#1720
#1721
#1722
#1726
#1727
#1728
#1728
#1729
#173
#1730
#1731
#1732
#1735
#174
#1741
#1742
#1743
#1744
#1745
#1747
#1747
#1748
#1750
#1750
#1751
#1753
#1754
#1755
#1757
#1759
#1760
#1762
#1766
#1768
#177
#177
#1771
#1772
#1774
#1775
#1775
#1776
#1778
#1778
#1779
#178
#1781
#1782
#1783
#1785
#1785
#1788
#179
#1792
#1795
#1795
#180
#180
#1800
#1802
#1803
#1809
#181
#181
#1813
#1815
#1817
#1819
#182
#1822
#1822
#1823
#1823
#1829
#1833
#1833
#1835
#1836
#1839
#1840
#1841
#1844
#1845
#1845
#185
#185
#1850
#1851
#1854
#1856
#1856
#1857
#1857
#186
#186
#1863
#1865
#1866
#1867
#187
#187
#1870
#1871
#1872
#1873
#1874
#1875
#1875
#1879
#1882
#1882
#1883
#1884
#1885
#1886
#189
#189
#1899
#1899
#19
#19
#1901
#1902
#1903
#1904
#1907
#1908
#1912
#1914
#1914
#1916
#1917
#192
#1921
#1922
#1922
#1925
#1926
#1927
#1928
#1930
#1932
#1934
#1935
#1935
#1938
#194
#194
#1940
#1941
#1941
#1943
#1944
#1944
#1945
#1946
#1952
#1955
#1956
#1957
#196
#196
#1960
#197
#1971
#1972
#1974
#1975
#1976
#1977
#1977
#1978
#198
#198
#1980
#1983
#1984
#1984
#1989
#1989
#199
#199
#1992
#1992
#1997
#1997
#1999
#1999
#200
#2000
#2001
#2002
#2002
#2003
#2012
#2012
#2018
#2021
#2022
#2023
#2024
#2028
#203
#203
#2030
#2037
#2040
#2041
#2043
#2043
#2044
#2047
#2049
#2049
#205
#205
#2052
#2053
#2055
#2056
#2056
#2061
#2063
#2064
#207
#2070
#2071
#2074
#2076
#2078
#2078
#208
#2080
#2085
#2085
#2086
#2087
#2089
#2090
#2090
#2093
#2094
#2095
#2095
#2097
#2097
#2098
#2099
#21
#21
#210
#2102
#2105
#2108
#211
#2110
#2110
#2113
#2117
#2117
#2118
#2120
#2121
#2122
#2126
#2127
#2128
#213
#213
#2131
#2131
#2134
#2137
#214
#2140
#2143
#2146
#2146
#2148
#2149
#2149
#215
#2152
#2153
#2158
#2158
#2164
#2164
#2167
#2167
#2168
#217
#217
#2172
#2173
#2174
#2178
#2178
#218
#2180
#2181
#2182
#2183
#2189
#2189
#2194
#2194
#2196
#2197
#2198
#2199
#2199
#220
#2200
#2200
#2201
#2202
#2206
#2210
#2216
#2218
#2218
#222
#2220
#2221
#2221
#2223
#2223
#2224
#2228
#2229
#223
#2230
#2231
#2233
#2234
#2235
#2236
#2237
#2238
#2238
#224
#224
#2241
#2244
#2245
#2245
#2246
#2246
#2248
#2253
#2256
#2258
#2258
#2259
#2259
#2263
#2263
#2265
#2266
#2266
#2267
#2267
#2271
#2271
#2272
#2273
#2274
#2274
#228
#230
#24
#24
#241
#242
#242
#244
#246
#246
#25
#25
#254
#255
#256
#257
#258
#26
#26
#260
#261
#261
#264
#265
#268
#268
#271
#273
#273
#274
#274
#275
#275
#278
#280
#280
#283
#284
#285
#285
#286
#287
#287
#288
#289
#290
#293
#294
#296
#296
#299
#300
#301
#301
#303
#305
#306
#308
#309
#312
#312
#313
#314
#314
#315
#315
#317
#317
#32
#323
#327
#329
#329
#331
#332
#334
#335
#335
#337
#338
#339
#343
#345
#348
#348
#349
#349
#351
#351
#353
#355
#356
#356
#359
#36
#36
#360
#361
#361
#363
#364
#369
#369
#370
#372
#373
#375
#375
#38
#38
#380
#381
#381
#383
#383
#384
#386
#39
#39
#390
#391
#394
#396
#397
#398
#399
#402
#405
#406
#408
#41
#410
#411
#414
#415
#417
#418
#419
#422
#423
#425
#427
#428
#431
#436
#437
#437
#438
#439
#441
#442
#444
#445
#446
#447
#451
#456
#457
#459
#461
#461
#466
#469
#472
#473
#473
#474
#475
#476
#477
#48
#48
#481
#481
#485
#487
#49
#49
#494
#494
#496
#497
#5
#50
#50
#500
#502
#504
#507
#51
#51
#513
#513
#515
#516
#520
#522
#523
#524
#526
#526
#528
#528
#529
#53
#53
#530
#531
#532
#536
#536
#537
#538
#54
#54
#543
#544
#544
#546
#547
#548
#549
#55
#55
#552
#554
#56
#56
#560
#565
#567
#573
#575
#575
#577
#577
#579
#58
#58
#580
#581
#581
#584
#585
#586
#588
#590
#591
#592
#593
#594
#595
#596
#6
#60
#606
#61
#61
#614
#615
#615
#616
#617
#617
#620
#621
#625
#626
#627
#628
#629
#630
#631
#635
#638
#64
#64
#642
#643
#645
#646
#649
#65
#65
#651
#653
#653
#657
#659
#659
#66
#66
#662
#664
#664
#666
#667
#668
#669
#671
#672
#673
#676
#677
#68
#68
#686
#687
#69
#698
#698
#7
#70
#700
#704
#71
#71
#711
#711
#712
#713
#713
#714
#717
#72
#72
#727
#730
#732
#734
#735
#736
#736
#737
#738
#74
#74
#746
#75
#754
#757
#76
#762
#765
#767
#769
#77
#772
#774
#775
#777
#779
#780
#782
#784
#784
#785
#786
#79
#79
#791
#794
#796
#797
#799
#8
#800
#801
#806
#807
#808
#809
#811
#814
#817
#82
#820
#822
#824
#826
#828
#83
#831
#832
#833
#839
#84
#840
#841
#841
#842
#842
#845
#846
#85
#850
#853
#855
#86
#86
#860
#863
#864
#865
#869
#87
#871
#873
#876
#878
#88
#880
#882
#883
#884
#885
#887
#888
#889
#89
#892
#893
#894
#896
#899
#9
#9
#90
#900
#902
#904
#905
#906
#91
#911
#912
#913
#916
#92
#922
#923
#924
#929
#93
#935
#936
#937
#939
#939
#94
#94
#944
#946
#947
#948
#949
#95
#953
#954
#955
#955
#96
#962
#964
#966
#968
#969
#97
#971
#972
#973
#975
#976
#977
#979
#98
#980
#983
#987
#991
#992
#993
#996
#998
#999
0.0.5
0.0.7
v0.0.1
v0.0.2
v0.0.3
v0.0.4
v0.0.5
v0.0.6
v0.0.7
v1.0.0
v1.1.0
v1.1.1
v1.1.2
v1.1.3
v1.2.0
v1.2.1
v1.3.0
v1.4.0
v1.5.0
v1.6.0
v1.6.1
v1.7.0
v1.8.0
v1.8.1
v1.9.0
v1.9.1
-
3eac1434ef
Update IsAvailableCommand checks
Eric Paris
2015-09-08 22:43:49 -04:00 -
75d96d75c3
Merge pull request #145 from eparis/man-cleanups
Eric Paris
2015-09-08 18:19:27 -05:00 -
b625a4db24
Merge pull request #143 from sdomino/feature/hidden-commands
Eric Paris
2015-09-08 18:19:22 -05:00 -
6d2f1d2fa7
Ability to hide commands from usage/help text
Steve Domino
2015-09-04 14:34:51 -06:00 -
edcf765d9f
Mangen: allow callers to specify header information
Eric Paris
2015-09-08 16:02:02 -04:00 -
b5cd2088e1
Merge
dfa8ea9685
into68f5a81a72
Steve Domino
2015-09-08 18:57:38 +00:00 -
dfa8ea9685
tests now leverage the built in test suite, and are much less custom
Steve Domino
2015-09-08 12:57:31 -06:00 -
8be60dc5cd
some minor updates to tests
Steve Domino
2015-09-08 11:27:06 -06:00 -
f3eb417cf8
adding tests to ensure hidden flags run as intended, but do not show up in usage/help text
Steve Domino
2015-09-08 11:21:51 -06:00 -
cfecf1379c
manpage generation: Make sure parent in SEE ALSO has dashes
Eric Paris
2015-09-08 12:32:15 -04:00 -
1c544baa19
updating 'private' to 'hidden' to match a corresponding change in pflag
Steve Domino
2015-09-07 18:34:39 -06:00 -
0a7cad51ef
checking if a flag is 'private' before adding it to the list of flags; this allows for hidden flags
Steve Domino
2015-09-04 16:29:28 -06:00 -
68f5a81a72
Merge pull request #141 from eparis/mac-completions
Eric Paris
2015-09-04 09:11:03 -05:00 -
32e87e3c8e
Enable bash completions on Macs
Eric Paris
2015-09-03 16:59:10 -04:00 -
16b4170663
Merge pull request #138 from eparis/cleanup-helpfunc
Eric Paris
2015-09-03 15:53:20 -05:00 -
1ba88c48dd
Merge pull request #139 from alexanderguy/RunE-is-runnable
Bjørn Erik Pedersen
2015-09-02 20:19:19 +02:00 -
823f6890b7
RunE commands should be considered runnable.
Alexander Guy
2015-09-02 10:59:31 -07:00 -
c2d19e9c43
Use the HelpFunc for the --help flag
Eric Paris
2015-09-01 14:10:55 -04:00 -
27bf24802c
Redo HelpFunc() to work things other than the help subcommand
Eric Paris
2015-09-01 13:58:55 -04:00 -
1f92281ffc
Merge pull request #135 from akutz/feature/custom-templ-funcs
Eric Paris
2015-09-01 11:55:58 -05:00 -
e15d674de6
Merge pull request #134 from apriendeau/master
Eric Paris
2015-09-01 11:51:29 -05:00 -
99d2c51143
Merge pull request #137 from eparis/fix-help-template
Eric Paris
2015-09-01 11:51:12 -05:00 -
f7b419fbe1
Merge pull request #136 from eparis/late-init-help-flag-fix
Eric Paris
2015-09-01 11:51:03 -05:00 -
8f9b8c7cba
Remove spurious } from the help template
Eric Paris
2015-09-01 11:25:13 -04:00 -
ae28810f0e
Fix the late init help flag
Eric Paris
2015-09-01 00:16:41 -04:00 -
5b121bc9fb
Template Function Injection
akutz
2015-08-31 22:36:55 -05:00 -
4c4f2d9417
Merge pull request #133 from eparis/late-init-help-flag
Eric Paris
2015-08-31 09:26:37 -05:00 -
9174039216
#67 creates RunE functions to allow for errors to populate to the top
Austin Riendeau
2015-08-30 19:03:16 -06:00 -
bab6d45bc6
Initialize the --help flag as late as possible
Eric Paris
2015-08-30 12:10:14 -04:00 -
7c00b28170
Merge
1169e1f351
into7cd6c9c000
Schley Andrew Kutz
2015-08-28 21:11:23 +00:00 -
7cd6c9c000
Merge pull request #132 from AntonioMeireles/unbrand-man
Eric Paris
2015-08-28 12:09:21 -05:00 -
f5d2d93abf
turn generated man pages non k8s specific.
António Meireles
2015-08-28 17:34:11 +01:00 -
1169e1f351
Help Flag Shorthand & Usage Customization
akutz
2015-08-23 14:11:53 -05:00 -
e4993076d8
Merge pull request #128 from eparis/genManPages
Eric Paris
2015-08-21 01:11:45 -07:00 -
9e7788657f
Auto generation of a man page
Eric Paris
2015-08-18 15:33:41 -07:00 -
db05184446
Merge pull request #127 from eparis/show-commandline-on-parent
Eric Paris
2015-08-16 22:42:27 -07:00 -
e8bd799c1c
Display pflag.CommandLine flags as if they were declared on the parent
Eric Paris
2015-08-16 22:14:43 -07:00 -
c55cdf3385
Merge pull request #126 from anthonyfok/bash-completion/subdirs-in-dir
Eric Paris
2015-08-09 17:25:49 -05:00 -
1e6fdf608f
Add new BashCompSubdirsInDir annotation
Anthony Fok
2015-08-09 13:30:58 -06:00 -
2188acea42
Check that arguments are in ValidArgs
Eric Paris
2015-06-09 19:17:01 -04:00 -
143ebcd4ee
Allow commands to explicitly state if they do, or do not take arbitrary arguments
Eric Paris
2015-06-09 14:17:58 -04:00 -
385fc87e43
Merge pull request #122 from eparis/cleanups
Eric Paris
2015-06-29 19:11:20 -05:00 -
f453e878d4
Update help template
Eric Paris
2015-06-29 20:06:04 -04:00 -
8e127101ec
Merge pull request #121 from eparis/cleanups
Eric Paris
2015-06-29 17:30:09 -05:00 -
9a9d01c9ec
Better error message
Eric Paris
2015-06-29 17:05:49 -04:00 -
0a7a850026
Make error handling more obvious
Eric Paris
2015-06-09 18:26:25 -04:00 -
6f735782e0
Remove unused ErrHelp check
Eric Paris
2015-06-09 15:16:44 -04:00 -
0a1a8e2e92
Remove (unused) cmdErrorBuf
Eric Paris
2015-06-09 15:04:14 -04:00 -
d0bb3e33e6
rework Find() to make it more obvious what is happening
Eric Paris
2015-06-09 13:52:43 -04:00 -
66816bcd03
Merge pull request #119 from eparis/bogus-bad-command
Eric Paris
2015-06-22 17:06:05 -05:00 -
07ad27d239
Handle grand children with the same name as the root
Eric Paris
2015-06-22 17:26:11 -04:00 -
ddd4c82b82
Merge pull request #116 from sgotti/fix_flag_as_unknown_command_in_output
Eric Paris
2015-06-22 16:52:47 -05:00 -
a8f7f3dc25
Merge pull request #118 from liggitt/file_autocomplete_helper
Eric Paris
2015-06-22 14:56:13 -05:00 -
6119fc993e
Simplify setting file/extension annotations on a flag
Jordan Liggitt
2015-06-22 14:28:16 -04:00 -
c820874edf
Merge
e503748591
into312092086b
Jordan Liggitt
2015-06-22 15:22:11 +00:00 -
e503748591
fall back to filedir completion
Jordan Liggitt
2015-06-22 11:21:36 -04:00 -
fb86c5c559
Correctly print the unknown command name
Simone Gotti
2015-06-22 10:14:37 +02:00 -
312092086b
Merge pull request #115 from skonzem/fix_typos
Bjørn Erik Pedersen
2015-06-05 20:08:24 +02:00 -
39e648c2b0
Fix typos in docs
Scott Konzem
2015-06-05 13:02:54 -04:00 -
8f5946caae
Merge pull request #112 from jlowdermilk/fix-genmarkdowntree
Eric Paris
2015-05-20 22:43:41 -05:00 -
7b4b4aaac9
Don't prepend filename in default GenMarkdownTree
Jeff Lowdermilk
2015-05-20 17:21:00 -07:00 -
08f289c394
Merge
72d5846913
intod910a04b50
Anastasis Andronidis
2015-05-19 14:23:17 +00:00 -
d910a04b50
Add Global Normalization Function
Anastasis Andronidis
2015-05-14 19:38:15 +02:00 -
408e0ad6b5
Merge
c4247299ff
intoe0f326dabc
Sam Ghods
2015-05-19 14:22:09 +00:00 -
e0f326dabc
Fix root command without subcommands but with arguments
Sam Ghods
2015-05-12 18:38:01 -07:00 -
72d5846913
Add Global Normalization Function
Anastasis Andronidis
2015-05-14 19:38:15 +02:00 -
c11766b405
slight typo in md_docs.md
Eric Paris
2015-05-13 08:38:33 -05:00 -
e659faf634
Merge pull request #109 from bep/markdowncustom
Bjørn Erik Pedersen
2015-05-13 15:30:04 +02:00 -
1d99c8ff6d
genmarkdown: add optional frontmatter- and linkadjustment-funcs
bep
2015-05-13 11:27:18 +02:00 -
be18870136
Fix two failing tests
bep
2015-05-13 11:54:47 +02:00 -
c4247299ff
Fix failing tests due to pflag error message change
Sam Ghods
2015-05-12 18:58:54 -07:00 -
62abfcbd80
Fix root command without subcommands but with arguments
Sam Ghods
2015-05-12 18:38:01 -07:00 -
bba56042cf
Merge pull request #105 from eparis/minor-bash-cleanup
Eric Paris
2015-05-04 22:51:16 -05:00 -
dff410ab56
make filename extension handling a bash function
Eric Paris
2015-05-04 15:44:07 -04:00 -
44fb1f8aef
Merge
8cdd1fe825
into743fa31b46
Kenjiro Nakayama
2015-05-04 20:20:48 +00:00 -
743fa31b46
Merge pull request #106 from eparis/bash-comp-docs
Eric Paris
2015-05-04 15:20:46 -05:00 -
48b95d0594
Make the filename extension bit of docs easier to read.
Eric Paris
2015-05-04 16:20:06 -04:00 -
787b737b48
Merge pull request #104 from eparis/minor-bash-cleanup
Eric Paris
2015-05-04 13:56:05 -05:00 -
f4b3401f9e
Clean up minor bash complaints from shellcheck.net
Eric Paris
2015-05-04 14:40:27 -04:00 -
7fc9f148dd
Merge pull request #102 from andronat/master
Eric Paris
2015-05-04 11:57:28 -05:00 -
8cdd1fe825
Add flags_completion as without @ format to _filedir
Kenjiro Nakayama
2015-05-05 01:06:13 +09:00 -
799a8ef863
Test for Persistent-Run propagation
Anastasis Andronidis
2015-05-04 17:57:46 +02:00 -
42e6ce397f
Fixed Persistent-Run function propagation
Anastasis Andronidis
2015-05-04 03:36:05 +02:00 -
7a2c36842e
Merge
88300f69f8
into3ee9552eeb
The Gitter Badger
2015-05-01 20:12:04 +00:00 -
88300f69f8
Added Gitter badge
The Gitter Badger
2015-05-01 20:12:03 +00:00 -
3ee9552eeb
Merge pull request #100 from eparis/pre-post-run
Eric Paris
2015-04-30 13:26:01 -05:00 -
fad5931693
Add docs, tests, and bit of rearrainging...
Eric Paris
2015-04-30 13:58:29 -04:00 -
fbce60cc56
added persistent pre/post commands.
Alexander Thaller
2015-02-17 22:09:49 +01:00 -
2df64026ba
added pre and post run hooks.
Alexander Thaller
2015-02-09 23:44:14 +01:00 -
9cf0f3737d
Merge pull request #90 from eparis/deprecated-subcommands
Eric Paris
2015-04-30 10:22:48 -05:00 -
7c7837e882
Merge pull request #85 from eparis/more-simplification
Eric Paris
2015-04-30 10:21:12 -05:00 -
2d5fab043c
Merge pull request #75 from eparis/CommandLine
Eric Paris
2015-04-30 10:20:35 -05:00 -
c3e48f996d
Deprecated subcommands
Eric Paris
2015-04-07 17:38:22 -04:00 -
69e5f196b5
Merge pull request #98 from eparis/markdown-quiet-test
Eric Paris
2015-04-28 09:43:10 -05:00 -
a112838e26
quiet down to go test for markdown generation
Eric Paris
2015-04-28 10:42:03 -04:00 -
af6b555418
Merge pull request #95 from deads2k/deads-prevent-extra-removal
Clayton Coleman
2015-04-28 10:06:27 -04:00 -
36aee64abe
prevent removal of valid arguments
deads2k
2015-04-24 11:39:11 -04:00 -
ebb2d55f56
Merge pull request #97 from sdboyer/patch-1
Bjørn Erik Pedersen
2015-04-26 16:23:45 +02:00 -
476e73f093
Fix misspelling typo
Sam Boyer
2015-04-26 08:53:29 -04:00 -
d697cc29c1
Merge pull request #96 from commonlisp/master
Bjørn Erik Pedersen
2015-04-25 22:31:21 +02:00