@contrail/cli 3.1.1 → 3.1.3
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/README.md
CHANGED
|
@@ -17,7 +17,7 @@ $ npm install -g @contrail/cli
|
|
|
17
17
|
$ contrail COMMAND
|
|
18
18
|
running command...
|
|
19
19
|
$ contrail (--version)
|
|
20
|
-
@contrail/cli/3.1.
|
|
20
|
+
@contrail/cli/3.1.3 darwin-arm64 node-v20.18.0
|
|
21
21
|
$ contrail --help [COMMAND]
|
|
22
22
|
USAGE
|
|
23
23
|
$ contrail COMMAND
|
|
@@ -101,16 +101,18 @@ class DeployExtension extends basecommand_1.BaseCommand {
|
|
|
101
101
|
}
|
|
102
102
|
const extensionDecl = extensions.find((ext) => ext.identifier === extensionIdentifier);
|
|
103
103
|
if (!extensionDecl) {
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
const message = `Extension '${extensionIdentifier}' not found in app.yml.`;
|
|
105
|
+
logger_1.default.info(`${chalk_1.default.red.bold('FAIL')} ${message}`);
|
|
106
|
+
throw new Error(message);
|
|
106
107
|
}
|
|
107
108
|
return extensionDecl;
|
|
108
109
|
}
|
|
109
110
|
getExtensionDirectory(extensionIdentifier) {
|
|
110
111
|
const extensionDir = path.resolve(process.cwd(), 'extensions', extensionIdentifier);
|
|
111
112
|
if (!fs.existsSync(extensionDir)) {
|
|
112
|
-
|
|
113
|
-
|
|
113
|
+
const message = `Extension directory '${extensionDir}' does not exist.`;
|
|
114
|
+
logger_1.default.info(`${chalk_1.default.red.bold('FAIL')} ${message}`);
|
|
115
|
+
throw new Error(message);
|
|
114
116
|
}
|
|
115
117
|
return extensionDir;
|
|
116
118
|
}
|
package/oclif.manifest.json
CHANGED