|
70 | 70 | actionInstall, actionSearch, actionList, actionBuild, actionPath, |
71 | 71 | actionUninstall, actionCompile, actionDoc, actionCustom, actionTasks, |
72 | 72 | actionDevelop, actionCheck, actionLock, actionRun, actionSync, actionSetup, |
73 | | - actionClean, actionDeps, actionShellEnv, actionShell, actionAdd, actionManual |
| 73 | + actionClean, actionDeps, actionShellEnv, actionShell, actionAdd, actionManual, |
| 74 | + actionPublishTags |
74 | 75 |
|
75 | 76 | DevelopActionType* = enum |
76 | 77 | datAdd, datRemoveByPath, datRemoveByName, datInclude, datExclude |
|
124 | 125 | depsAction*: string |
125 | 126 | of actionPublish: |
126 | 127 | publishAction*: string |
| 128 | + of actionPublishTags: |
| 129 | + onlyListTags*: bool |
127 | 130 | of actionShellEnv, actionShell: |
128 | 131 | discard |
129 | 132 |
|
@@ -177,6 +180,10 @@ Commands: |
177 | 180 | publish Publishes a package on nim-lang/packages. |
178 | 181 | The current working directory needs to be the |
179 | 182 | top level directory of the Nimble package. |
| 183 | + publishTags Finds and publishes new tags based on the |
| 184 | + commits where a package's Nimble file changed. |
| 185 | + [-l, --listOnly] Only list the tags and versions which are found without |
| 186 | + actually performing tag or publishing them. |
180 | 187 | uninstall [pkgname, ...] Uninstalls a list of packages. |
181 | 188 | [-i, --inclDeps] Uninstalls package and dependent package(s). |
182 | 189 | build [opts, ...] [bin] Builds a package. Passes options to the Nim |
@@ -216,9 +223,11 @@ Commands: |
216 | 223 | [--ini, --json] Selects the output format (the default is --ini). |
217 | 224 | lock Generates or updates a package lock file. |
218 | 225 | upgrade [pkgname, ...] Upgrades a list of packages in the lock file. |
219 | | - deps Outputs dependency tree |
| 226 | + deps Outputs dependencies for current package. |
| 227 | + [--tree] Outputs dependency tree. |
| 228 | + [--inverted] Outputs inverted (reversed) dependency tree. |
220 | 229 | [--format type] Specify the output format. Json is the only supported |
221 | | - format |
| 230 | + format. Only some commands support it. |
222 | 231 | sync Synchronizes develop mode dependencies with |
223 | 232 | the content of the lock file. |
224 | 233 | [-l, --listOnly] Only lists the packages which are not synced |
@@ -329,6 +338,8 @@ proc parseActionType*(action: string): ActionType = |
329 | 338 | result = actionUninstall |
330 | 339 | of "publish": |
331 | 340 | result = actionPublish |
| 341 | + of "publishtags": |
| 342 | + result = actionPublishTags |
332 | 343 | of "upgrade": |
333 | 344 | result = actionUpgrade |
334 | 345 | of "tasks": |
@@ -762,6 +773,12 @@ proc parseFlag*(flag, val: string, result: var Options, kind = cmdLongOption) = |
762 | 773 | result.action.publishAction = "tags" |
763 | 774 | else: |
764 | 775 | wasFlagHandled = false |
| 776 | + of actionPublishTags: |
| 777 | + case f |
| 778 | + of "l", "listonly": |
| 779 | + result.action.onlyListTags = true |
| 780 | + else: |
| 781 | + wasFlagHandled = false |
765 | 782 | of actionDeps: |
766 | 783 | case f |
767 | 784 | of "format": |
|
0 commit comments