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
-
821543bdaa
Improving createLicenseFile function
Ian Walter
2016-03-31 14:52:16 -04:00 -
1bdb0b867c
Adding custom license functionality
Ian Walter
2016-03-31 14:31:03 -04:00 -
b0d571e7d5
Merge pull request #260 from ianwalter/code-cleanup
Eric Paris
2016-03-31 09:32:10 -05:00 -
a0bd6c17b3
Fixing golint warnings
Ian Walter
2016-03-31 09:53:34 -04:00 -
ee150b4fa2
Merge pull request #258 from kkirsche/patch-1
Eric Paris
2016-03-30 16:59:46 -05:00 -
f643f707c9
Update root.go to fix golint bug with comment
Kevin Kirsche
2016-03-30 17:50:52 -04:00 -
c678ff029e
Merge pull request #256 from sttts/sttts-fix-bash-escaping
Eric Paris
2016-03-22 12:10:42 -05:00 -
a23d903a12
Fix escaping of % in bash code strings
Dr. Stefan Schimanski
2016-03-22 16:47:16 +01:00 -
966e6048eb
Merge pull request #230 from garthk/fix-man-see-also
Eric Paris
2016-03-21 19:23:55 -05:00 -
57021c6b4d
Merge pull request #244 from apriendeau/silence-errors-readme
Eric Paris
2016-03-21 19:22:44 -05:00 -
d6b481239e
Merge pull request #255 from sttts/sttts-bash-completion-flag-equal
Eric Paris
2016-03-21 19:22:24 -05:00 -
ea9a77d312
Add support for plural nouns in bash completion
Dr. Stefan Schimanski
2016-03-20 23:21:49 +01:00 -
8092588fb8
Add custom bash flag completion
Dr. Stefan Schimanski
2016-03-20 21:05:18 +01:00 -
7d556a0974
Enable bash completion after --flag= or --flag=abc
Dr. Stefan Schimanski
2016-03-20 20:30:21 +01:00 -
1bacefc9a2
Merge pull request #254 from fabianofranz/optional_options_at_the_end_of_usage
Eric Paris
2016-03-15 16:50:08 -05:00 -
16b7ba55fb
Must only add "[flags]" to the end of usage if not yet present
Fabiano Franz
2016-03-15 18:22:20 -03:00 -
3cea2b7e5d
add gpl2 license
Rob Terhaar
2016-02-21 23:00:23 -05:00 -
418fce7745
add gpl2 license
Rob Terhaar
2016-02-21 22:54:02 -05:00 -
e21e5f0b09
updates readme to Explain SilenceErrors and SilenceUsage #225
Austin Riendeau
2016-02-18 13:57:07 -07:00 -
d2b7b7c171
Merge
2a20bcba18
into65a708cee0
Anthony Fok
2016-02-08 22:06:36 +00:00 -
65a708cee0
Allow bash-completion to work with full-path executable
Anthony Fok
2016-02-08 02:29:17 +08:00 -
1ef0913976
Use nil instead of len for arg check. This honors the SetArgs() call
Jonathan Reyna
2016-01-13 23:55:11 -05:00 -
bbdcadf158
Add Swarm to Cobra user list
Steve Francia
2016-02-08 17:02:55 -05:00 -
2a20bcba18
Allow bash-completion to work with full-path executable
Anthony Fok
2016-02-08 02:29:17 +08:00 -
04d02e3184
Merge pull request #241 from bogem/typo
Eric Paris
2016-02-06 12:39:43 -05:00 -
64cc91ac9b
Fix typo in README
bogem
2016-02-06 17:38:32 +01:00 -
801364aa15
Skip "bash: declare: -A: invalid option" error gracefully
Anthony Fok
2016-02-05 13:04:36 +08:00 -
57f473263e
Add explicit doc.GenMan SEE ALSO test covering #229
Garth Kidd
2016-01-21 12:06:00 +11:00 -
cb8496d6b2
Ensure SEE ALSO list has no leading comma, fixing #229
Garth Kidd
2016-01-17 15:18:47 +11:00 -
8e91712f17
Merge pull request #228 from garthk/fix-doc-generation
Eric Paris
2016-01-16 22:09:38 -05:00 -
356750645f
Update doc generation examples. Fixes #227.
Garth Kidd
2016-01-17 11:29:42 +11:00 -
8e6aca4182
Use filepath.Join, not string math. Fixes #226.
Garth Kidd
2016-01-17 11:24:54 +11:00 -
be83716983
Use nil instead of len for arg check. This honors the SetArgs() call
Jonathan Reyna
2016-01-13 23:55:11 -05:00 -
9c93009019
Merge pull request #223 from mattnenterprise/doc-link-fixes
Eric Paris
2016-01-13 22:06:19 -05:00 -
d12e2412b6
Fix links to markdown and man page docs
Matt McCoy
2016-01-13 21:40:50 -05:00 -
76742d6753
Issue #219, #220 PersistentFunctions can chain now
Anthony Rebello
2016-01-13 23:09:49 +05:30 -
348f909d8b
Revert "Issue #219: added PreRunChain and PostRunChain hooks"
Anthony Rebello
2016-01-13 21:52:37 +05:30 -
c83aa7a6c7
Clarify behaviour surrounding nested custom handlers
cpfair
2016-01-12 16:33:27 +00:00 -
2e00cabe43
Untranspose __custom_func in docs table
cpfair
2016-01-12 16:26:51 +00:00 -
beaa4630e5
Allow functions within BashCompletionFunction to run unconditionally, limit their scope to a particular command.
cpfair
2016-01-12 16:17:19 +00:00 -
97f831a4fd
Change first line of generated bash-completion file
Anthony Fok
2016-01-11 15:37:32 -07:00 -
3dbb5be47c
Issue #219: added PreRunChain and PostRunChain hooks
Anthony Rebello
2016-01-08 12:42:10 +05:30 -
2a426b5c59
README: add etcd
Gyu-Ho Lee
2016-01-05 23:25:13 -08:00 -
a3a9f345ca
Merge pull request #218 from mvdan/error-checking
Eric Paris
2016-01-06 09:57:15 -05:00 -
5df1341f93
Treat write errors in man doc generation
Daniel Martí
2016-01-06 12:21:23 +01:00 -
eb5040e69e
Treat write errors in markdown doc generation
Daniel Martí
2016-01-06 11:59:28 +01:00 -
ea06b29c10
Simplify GenMarkdownTreeCustom signature
Daniel Martí
2016-01-06 11:49:26 +01:00 -
5fa1003a36
Remove unused outs global var
Daniel Martí
2016-01-06 11:49:16 +01:00 -
8c619f31e7
README: add etcd
Gyu-Ho Lee
2016-01-05 23:25:13 -08:00 -
c82a0ceef8
Merge pull request #215 from mvdan/interfacer
Eric Paris
2016-01-05 16:50:52 -05:00 -
e0479ff7a7
Add error handling to GenBashCompletion
Daniel Martí
2016-01-03 15:05:08 +01:00 -
a5ff2f28ab
Reuse GenBashCompletion in GenBashCompletionFile
Daniel Martí
2016-01-03 14:45:11 +01:00 -
463be1428d
Replace *bytes.Buffer with io.Writer
Daniel Martí
2016-01-03 13:01:52 +01:00 -
c6399cd398
Use readline's default filename completion if completion fails
Tamer TAS
2016-01-02 08:11:35 +02:00 -
893f9e247b
Merge
90aa777933
intob3f29e98e6
Frank Schröder
2015-12-24 14:02:10 +00:00 -
b3f29e98e6
Issue #195: Move doc generation into separate pkg
Frank Schroeder
2015-11-24 00:19:16 +01:00 -
340ddb0a70
Merge
0ea548e1df
intof3aca0a8e7
Steve Domino
2015-12-24 13:55:11 +00:00 -
f3aca0a8e7
adding nanobox/nanopack to list of cobra users
Steve Domino
2015-12-22 13:28:38 -07:00 -
ec9db09b9c
Merge
97cc84b0e4
into60b8213eba
Kenjiro Nakayama
2015-12-24 13:53:48 +00:00 -
60b8213eba
Add flaghash to bash_completion to keep flag value
Kenjiro Nakayama
2015-12-06 02:57:45 +09:00 -
2bd8a730ae
always show help if requested, even if SilenceErrors is enabled
Sascha Holzleiter
2015-12-03 14:58:31 +01:00 -
0ea548e1df
adding nanobox/nanopack to list of cobra users
Steve Domino
2015-12-22 13:28:38 -07:00 -
c65e6422ff
Fix typo: exiting → existing
Anthony Fok
2015-12-17 14:43:23 -07:00 -
c3ef89ad8a
Fix typo: initalize → initialize, etc.
Anthony Fok
2015-12-17 11:18:55 -07:00 -
73665614cb
Merge pull request #197 from magiconair/issue-195-mousetrap-win-only
Eric Paris
2015-12-16 19:04:05 -05:00 -
11265d64db
Merge pull request #210 from boz/colon-completion
Eric Paris
2015-12-16 17:12:45 -05:00 -
ea3bf167cf
Merge pull request #211 from NanXiao/patch-1
Eric Paris
2015-12-16 10:02:01 -05:00 -
d95d1b86bb
Update command.go
Nan Xiao
2015-12-16 16:14:10 +08:00 -
ee6224d01f
Ugly fix for filepath.IsAbs not playing nicely with windows
Jared Bydeley
2015-11-23 23:34:19 -05:00 -
1f27c09535
Fixed tests for how they are run
Jared Bydeley
2015-11-23 23:19:22 -05:00 -
3e7fb991e1
Fixed import path issue on Windows
Jared Bydeley
2015-11-23 22:46:26 -05:00 -
fe79245d1a
Bash completion for names with ':' character.
Adam Bozanich
2015-12-09 20:57:45 -08:00 -
29cddf65b2
Merge pull request #208 from gosharplite/patch-2
Eric Paris
2015-12-09 08:50:41 -05:00 -
ebd5d2bdca
Update README.md
Tony Hsu
2015-12-09 15:48:54 +08:00 -
8210022f43
Merge pull request #207 from gosharplite/patch-1
Eric Paris
2015-12-08 10:13:42 -05:00 -
83de5c46ff
Fix wrong command name.
Tony Hsu
2015-12-08 17:17:31 +08:00 -
97cc84b0e4
Add flaghash to bash_completion to keep flag value
Kenjiro Nakayama
2015-12-06 02:57:45 +09:00 -
f6251f5f3d
always show help if requested, even if SilenceErrors is enabled
Sascha Holzleiter
2015-12-03 14:58:31 +01:00 -
1c44ec8d3f
Merge pull request #200 from sobit/patch-1
Eric Paris
2015-11-24 10:32:17 -05:00 -
9e39e41fb0
fix typo
Sobit Akhmedov
2015-11-24 14:46:13 +01:00 -
8ec63a6ebe
Ugly fix for filepath.IsAbs not playing nicely with windows
Jared Bydeley
2015-11-23 23:34:19 -05:00 -
e97dbc5a21
Fixed tests for how they are run
Jared Bydeley
2015-11-23 23:19:22 -05:00 -
1057f75af9
Fixed import path issue on Windows
Jared Bydeley
2015-11-23 22:46:26 -05:00 -
193b182195
Issue #195: Compile mousetrap only on Windows
Frank Schroeder
2015-11-24 00:19:32 +01:00 -
90aa777933
Issue #195: Move doc generation into separate pkg
Frank Schroeder
2015-11-24 00:19:16 +01:00 -
05c7688045
Merge
7dabd59186
intob167d9beaa
Christoph Görn
2015-11-23 18:51:28 +00:00 -
b167d9beaa
add GNU GPL3 as a license
Christoph Görn
2015-11-23 10:39:02 +01:00 -
7dabd59186
Christoph Görn
2015-11-23 10:39:02 +01:00 -
b0ace35ce7
Improve Cobra Generator’s licensing helper
Anthony Fok
2015-11-20 16:42:37 -07:00 -
4b096512f3
Reflow license text and add copyright year and name
Anthony Fok
2015-11-21 23:31:58 -07:00 -
6d6c92d5b7
Parse the full license text as a template
Anthony Fok
2015-11-21 23:29:20 -07:00 -
10546a043b
Remove extraneous comma at the end of SEE ALSO list
Anthony Fok
2015-11-21 06:23:56 -07:00 -
9c32fb42ec
Reset man page title when necessary in GenManTree
Anthony Fok
2015-11-21 06:18:37 -07:00 -
3bd84ba55c
Ensure man page title is uppercase and has rootcmd
Anthony Fok
2015-11-21 06:13:53 -07:00 -
baf44a3923
Fix Lintian warning: manpage-has-bad-whatis-entry
Anthony Fok
2015-11-21 06:02:54 -07:00 -
46c720088b
Fix a copy-and-paste error in man_docs.md
Anthony Fok
2015-11-20 17:12:30 -07:00 -
0cc7cc2c06
Fix typo in cobra/cmd/init.go
Anthony Fok
2015-11-20 15:49:08 -07:00 -
e22a0c9315
Better instructions for the execute inside main()
Steve Francia
2015-11-20 17:37:20 -05:00 -
4e18e0c2bf
Fix typos in README.md: Change "it's" to "its" where appropriate
Anthony Fok
2015-11-20 15:31:48 -07:00 -
1e63ad8ed1
Fine-tune the formatting of Cobra’s generated code
Anthony Fok
2015-11-20 15:28:40 -07:00