You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"[commitlog] we no longer support direct invocation, please use the subcommand `generate` to generate a log or `release` to manage your .commitlog.release",
23
+
)
24
+
25
+
returnnil
26
+
},
27
+
Commands: []*cli.Command{
28
+
{
29
+
Name: "generate",
30
+
Aliases: []string{"g"},
31
+
Usage: "commits to changelogs",
32
+
Action: func(c*cli.Context) error {
33
+
returncommands.Commitlog(c)
34
+
},
35
+
Flags: []cli.Flag{
36
+
&cli.BoolFlag{
37
+
Name: "promo",
38
+
Usage: "add promo text to the end of output",
39
+
},
40
+
&cli.StringFlag{
41
+
Name: "out",
42
+
Usage: "path to the output `FILE`",
43
+
},
44
+
&cli.BoolFlag{
45
+
Name: "stdio",
46
+
Usage: "print to the stdout",
47
+
},
48
+
&cli.StringFlag{
49
+
Name: "start",
50
+
Usage: "`START` reference for the commit to include commits from,"+
51
+
"This is inclusive of the given commit reference",
52
+
},
53
+
&cli.StringFlag{
54
+
Name: "end",
55
+
Usage: "`END` reference for the commit to stop including commits at."+
56
+
"This is exclusive of the given commit reference",
57
+
},
58
+
},
59
+
},
60
+
{
61
+
Name: "release",
62
+
Aliases: []string{"r"},
63
+
Usage: "manage .commitlog.release version",
64
+
Action: func(c*cli.Context) error {
65
+
returncommands.Release(c)
66
+
},
67
+
Flags: []cli.Flag{
68
+
&cli.BoolFlag{
69
+
Name: "init",
70
+
Usage: "initialise commitlog release",
71
+
},
72
+
&cli.BoolFlag{
73
+
Name: "pre-release",
74
+
Usage: "create a pre-release version. will default to patch increment unless"+
75
+
"specified and not already a pre-release",
76
+
},
77
+
&cli.StringFlag{
78
+
Name: "pre-release-tag",
79
+
Value: "beta",
80
+
Usage: "create a pre-release version",
81
+
},
82
+
&cli.BoolFlag{
83
+
Name: "major",
84
+
Usage: "create a major version",
85
+
},
86
+
&cli.BoolFlag{
87
+
Name: "minor",
88
+
Usage: "create a minor version",
89
+
},
90
+
&cli.BoolFlag{
91
+
Name: "patch",
92
+
Usage: "create a patch version",
93
+
},
94
+
&cli.BoolFlag{
95
+
Name: "commit",
96
+
Value: false,
97
+
Usage: "if true will create a commit, of the changed version",
98
+
},
99
+
&cli.BoolFlag{
100
+
Name: "tag",
101
+
Value: false,
102
+
Usage: "if true will create a tag, with the given version",
0 commit comments