|
34 | 34 | # "required": True,
|
35 | 35 | "commands": [
|
36 | 36 | {
|
37 |
| - "name": "ls", |
38 |
| - "help": "show available commitizens", |
39 |
| - "func": commands.ListCz, |
| 37 | + "name": ["init"], |
| 38 | + "help": "init commitizen configuration", |
| 39 | + "func": commands.Init, |
40 | 40 | },
|
41 | 41 | {
|
42 | 42 | "name": ["commit", "c"],
|
|
55 | 55 | },
|
56 | 56 | ],
|
57 | 57 | },
|
| 58 | + { |
| 59 | + "name": "ls", |
| 60 | + "help": "show available commitizens", |
| 61 | + "func": commands.ListCz, |
| 62 | + }, |
58 | 63 | {
|
59 | 64 | "name": "example",
|
60 | 65 | "help": "show commit example",
|
|
114 | 119 | ],
|
115 | 120 | },
|
116 | 121 | {
|
117 |
| - "name": ["version"], |
| 122 | + "name": ["changelog", "ch"], |
118 | 123 | "help": (
|
119 |
| - "get the version of the installed commitizen or the current project" |
120 |
| - " (default: installed commitizen)" |
| 124 | + "generate changelog (note that it will overwrite existing file)" |
121 | 125 | ),
|
122 |
| - "func": commands.Version, |
| 126 | + "func": commands.Changelog, |
123 | 127 | "arguments": [
|
124 | 128 | {
|
125 |
| - "name": ["-p", "--project"], |
126 |
| - "help": "get the version of the current project", |
| 129 | + "name": "--dry-run", |
127 | 130 | "action": "store_true",
|
128 |
| - "exclusive_group": "group1", |
| 131 | + "default": False, |
| 132 | + "help": "show changelog to stdout", |
129 | 133 | },
|
130 | 134 | {
|
131 |
| - "name": ["-c", "--commitizen"], |
132 |
| - "help": "get the version of the installed commitizen", |
133 |
| - "action": "store_true", |
134 |
| - "exclusive_group": "group1", |
| 135 | + "name": "--file-name", |
| 136 | + "help": "file name of changelog (default: 'CHANGELOG.md')", |
135 | 137 | },
|
136 | 138 | {
|
137 |
| - "name": ["-v", "--verbose"], |
| 139 | + "name": "--start-rev", |
| 140 | + "default": None, |
138 | 141 | "help": (
|
139 |
| - "get the version of both the installed commitizen " |
140 |
| - "and the current project" |
| 142 | + "start rev of the changelog." |
| 143 | + "If not set, it will generate changelog from the start" |
141 | 144 | ),
|
142 |
| - "action": "store_true", |
143 |
| - "exclusive_group": "group1", |
144 | 145 | },
|
145 | 146 | ],
|
146 | 147 | },
|
|
161 | 162 | ],
|
162 | 163 | },
|
163 | 164 | {
|
164 |
| - "name": ["init"], |
165 |
| - "help": "init commitizen configuration", |
166 |
| - "func": commands.Init, |
| 165 | + "name": ["version"], |
| 166 | + "help": ( |
| 167 | + "get the version of the installed commitizen or the current project" |
| 168 | + " (default: installed commitizen)" |
| 169 | + ), |
| 170 | + "func": commands.Version, |
| 171 | + "arguments": [ |
| 172 | + { |
| 173 | + "name": ["-p", "--project"], |
| 174 | + "help": "get the version of the current project", |
| 175 | + "action": "store_true", |
| 176 | + "exclusive_group": "group1", |
| 177 | + }, |
| 178 | + { |
| 179 | + "name": ["-c", "--commitizen"], |
| 180 | + "help": "get the version of the installed commitizen", |
| 181 | + "action": "store_true", |
| 182 | + "exclusive_group": "group1", |
| 183 | + }, |
| 184 | + { |
| 185 | + "name": ["-v", "--verbose"], |
| 186 | + "help": ( |
| 187 | + "get the version of both the installed commitizen " |
| 188 | + "and the current project" |
| 189 | + ), |
| 190 | + "action": "store_true", |
| 191 | + "exclusive_group": "group1", |
| 192 | + }, |
| 193 | + ], |
167 | 194 | },
|
168 | 195 | ],
|
169 | 196 | },
|
|
0 commit comments