@adinsure-ops/ops-cli 5.4.1-rc4 → 5.4.1-rc5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/command.base.js +7 -9
- package/oclif.manifest.json +48 -48
- package/package.json +1 -1
package/lib/command.base.js
CHANGED
|
@@ -33,19 +33,17 @@ export default class CommandBase extends Command {
|
|
|
33
33
|
getYarnVersion() {
|
|
34
34
|
return __awaiter(this, void 0, void 0, function* () {
|
|
35
35
|
const output = yield this.childProcess.runCommand(['yarn', '--version']);
|
|
36
|
+
// NOTE: When corepack downloads new version of yarn the log is sent to stderr.
|
|
36
37
|
if (output.error && !output.error.includes('Corepack is about to download')) {
|
|
37
38
|
ux.action.stop(`${chalk.red(output.error)}`);
|
|
39
|
+
throw new Error(`Getting yarn version command error: ${output.error}`);
|
|
38
40
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
return version;
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
ux.action.stop(`${chalk.red('failed getting yarn version')}`);
|
|
46
|
-
}
|
|
41
|
+
const version = output.data.split('\n')[0];
|
|
42
|
+
if (version) {
|
|
43
|
+
return version;
|
|
47
44
|
}
|
|
48
|
-
|
|
45
|
+
ux.action.stop(`${chalk.red('failed getting yarn version')}`);
|
|
46
|
+
throw new Error(`Could not resolve yarn version, from "${output.data}"`);
|
|
49
47
|
});
|
|
50
48
|
}
|
|
51
49
|
yarnIsBerryVersion(version) {
|
package/oclif.manifest.json
CHANGED
|
@@ -618,53 +618,6 @@
|
|
|
618
618
|
"unset.js"
|
|
619
619
|
]
|
|
620
620
|
},
|
|
621
|
-
"docker:update-image-version": {
|
|
622
|
-
"aliases": [],
|
|
623
|
-
"args": {
|
|
624
|
-
"version": {
|
|
625
|
-
"description": "Version",
|
|
626
|
-
"name": "version",
|
|
627
|
-
"required": true
|
|
628
|
-
}
|
|
629
|
-
},
|
|
630
|
-
"description": "update docker image version docker compose file",
|
|
631
|
-
"examples": [
|
|
632
|
-
"$ ops docker:update-image-version 17.0.0 --service server client"
|
|
633
|
-
],
|
|
634
|
-
"flags": {
|
|
635
|
-
"services": {
|
|
636
|
-
"description": "list of services to update",
|
|
637
|
-
"name": "services",
|
|
638
|
-
"required": true,
|
|
639
|
-
"hasDynamicHelp": false,
|
|
640
|
-
"multiple": true,
|
|
641
|
-
"type": "option"
|
|
642
|
-
},
|
|
643
|
-
"file-path": {
|
|
644
|
-
"description": "list of services to update",
|
|
645
|
-
"name": "file-path",
|
|
646
|
-
"default": "./docker-compose.yml",
|
|
647
|
-
"hasDynamicHelp": false,
|
|
648
|
-
"multiple": false,
|
|
649
|
-
"type": "option"
|
|
650
|
-
}
|
|
651
|
-
},
|
|
652
|
-
"hasDynamicHelp": false,
|
|
653
|
-
"hiddenAliases": [],
|
|
654
|
-
"id": "docker:update-image-version",
|
|
655
|
-
"pluginAlias": "@adinsure-ops/ops-cli",
|
|
656
|
-
"pluginName": "@adinsure-ops/ops-cli",
|
|
657
|
-
"pluginType": "core",
|
|
658
|
-
"strict": true,
|
|
659
|
-
"usage": "docker:update-image-version <tag>",
|
|
660
|
-
"isESM": true,
|
|
661
|
-
"relativePath": [
|
|
662
|
-
"lib",
|
|
663
|
-
"commands",
|
|
664
|
-
"docker",
|
|
665
|
-
"update-image-version.js"
|
|
666
|
-
]
|
|
667
|
-
},
|
|
668
621
|
"download:client": {
|
|
669
622
|
"aliases": [
|
|
670
623
|
"download:client"
|
|
@@ -1164,6 +1117,53 @@
|
|
|
1164
1117
|
"studio.js"
|
|
1165
1118
|
]
|
|
1166
1119
|
},
|
|
1120
|
+
"docker:update-image-version": {
|
|
1121
|
+
"aliases": [],
|
|
1122
|
+
"args": {
|
|
1123
|
+
"version": {
|
|
1124
|
+
"description": "Version",
|
|
1125
|
+
"name": "version",
|
|
1126
|
+
"required": true
|
|
1127
|
+
}
|
|
1128
|
+
},
|
|
1129
|
+
"description": "update docker image version docker compose file",
|
|
1130
|
+
"examples": [
|
|
1131
|
+
"$ ops docker:update-image-version 17.0.0 --service server client"
|
|
1132
|
+
],
|
|
1133
|
+
"flags": {
|
|
1134
|
+
"services": {
|
|
1135
|
+
"description": "list of services to update",
|
|
1136
|
+
"name": "services",
|
|
1137
|
+
"required": true,
|
|
1138
|
+
"hasDynamicHelp": false,
|
|
1139
|
+
"multiple": true,
|
|
1140
|
+
"type": "option"
|
|
1141
|
+
},
|
|
1142
|
+
"file-path": {
|
|
1143
|
+
"description": "list of services to update",
|
|
1144
|
+
"name": "file-path",
|
|
1145
|
+
"default": "./docker-compose.yml",
|
|
1146
|
+
"hasDynamicHelp": false,
|
|
1147
|
+
"multiple": false,
|
|
1148
|
+
"type": "option"
|
|
1149
|
+
}
|
|
1150
|
+
},
|
|
1151
|
+
"hasDynamicHelp": false,
|
|
1152
|
+
"hiddenAliases": [],
|
|
1153
|
+
"id": "docker:update-image-version",
|
|
1154
|
+
"pluginAlias": "@adinsure-ops/ops-cli",
|
|
1155
|
+
"pluginName": "@adinsure-ops/ops-cli",
|
|
1156
|
+
"pluginType": "core",
|
|
1157
|
+
"strict": true,
|
|
1158
|
+
"usage": "docker:update-image-version <tag>",
|
|
1159
|
+
"isESM": true,
|
|
1160
|
+
"relativePath": [
|
|
1161
|
+
"lib",
|
|
1162
|
+
"commands",
|
|
1163
|
+
"docker",
|
|
1164
|
+
"update-image-version.js"
|
|
1165
|
+
]
|
|
1166
|
+
},
|
|
1167
1167
|
"gitlab:get-tag-pipeline": {
|
|
1168
1168
|
"aliases": [],
|
|
1169
1169
|
"args": {
|
|
@@ -1859,5 +1859,5 @@
|
|
|
1859
1859
|
]
|
|
1860
1860
|
}
|
|
1861
1861
|
},
|
|
1862
|
-
"version": "5.4.1-
|
|
1862
|
+
"version": "5.4.1-rc5"
|
|
1863
1863
|
}
|