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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
## Unreleased
2
2
3
+
* Add `--include` option to `projects archives import`, matching the equivalent option on `projects archives export`, to select archive contents (`executions,config,acl,scm,webhooks,nodeSources`) with a single flag instead of individual `--include-*` booleans. Existing `--include-*`/`--noExecutions` flags still work when `--include` is not specified. [PR #561](https://github.com/rundeck/rundeck-cli/pull/561)
4
+
3
5
## 3.0.0
4
6
5
7
***Breaking change**: Java 17 or later is required to run the CLI and to build from source. Java 11 is no longer supported.
@CommandLine.Command(description = "Get the status of an ongoing asynchronous import process.", name = "async-import-status")
@@ -142,24 +190,25 @@ public int importArchive(@CommandLine.Mixin ArchiveImportOpts opts) throws Input
142
190
if (!input.canRead() || !input.isFile()) {
143
191
thrownewInputError(String.format("File is not readable or does not exist: %s", input));
144
192
}
145
-
if ((opts.isIncludeWebhooks() || opts.isWhkRegenAuthTokens()) && getRdTool().getClient().getApiVersion() < 34) {
146
-
thrownewInputError(String.format("Cannot use --include-webhooks or --regenerate-tokens with API < 34 (currently: %s)", getRdTool().getClient().getApiVersion()));
if ((importFlags.contains(ImportFlags.webhooks) || opts.isWhkRegenAuthTokens()) && getRdTool().getClient().getApiVersion() < 34) {
195
+
thrownewInputError(String.format("Cannot include webhooks (--include-webhooks or --include webhooks) or use --regenerate-tokens with API < 34 (currently: %s)", getRdTool().getClient().getApiVersion()));
147
196
}
148
-
if ((opts.isIncludeWebhooks() ||opts.isWhkRegenUuid()) && getRdTool().getClient().getApiVersion() < 47) {
149
-
thrownewInputError(String.format("Cannot use --include-webhooks or --remove-webhooks-uuids with API < 47 (currently: %s)", getRdTool().getClient().getApiVersion()));
197
+
if ((importFlags.contains(ImportFlags.webhooks) &&opts.isWhkRegenUuid()) && getRdTool().getClient().getApiVersion() < 47) {
198
+
thrownewInputError(String.format("Cannot include webhooks (--include-webhooks or --include webhooks) with --remove-webhooks-uuids with API < 47 (currently: %s)", getRdTool().getClient().getApiVersion()));
150
199
}
151
-
if ((opts.isIncludeNodeSources()) && getRdTool().getClient().getApiVersion() < 38) {
152
-
thrownewInputError(String.format("Cannot use --include-node-sources with API < 38 (currently: %s)", getRdTool().getClient().getApiVersion()));
200
+
if ((importFlags.contains(ImportFlags.nodeSources)) && getRdTool().getClient().getApiVersion() < 38) {
201
+
thrownewInputError(String.format("Cannot include node sources (--include-node-sources or --include nodeSources) with API < 38 (currently: %s)", getRdTool().getClient().getApiVersion()));
0 commit comments