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
-
c4667c9e63
Fixed typo in md output
George Kuan
2015-04-25 10:59:26 -07:00 -
cc325c02b5
Merge
f411518d3f
into3c187e9045
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
intof576d29563
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
intof576d29563
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
into0ea881ce45
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
into09b49c329c
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
into79bd93d369
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
into79bd93d369
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
into384c059f4b
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
intoe784a59910
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
into6de96b849c
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
into9e7273d546
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
intobbdea35c49
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
into5c9146990b
Eric Paris
2015-03-12 23:42:37 +00:00 -
a50948df52
Merge
2c035e3b4a
into5c9146990b
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
intof8e1ec56bd
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
intof8e1ec56bd
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
intof8e1ec56bd
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
into07a9dc0024
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
intobd75ea1d19
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
intoefb045ec60
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