@autofleet/cli 1.0.12 → 1.0.14
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/bin/utils/index.js +5 -1
- package/package.json +1 -1
package/bin/utils/index.js
CHANGED
|
@@ -17,7 +17,11 @@ export const terminalCommand = async (command) => {
|
|
|
17
17
|
return formattedOutput;
|
|
18
18
|
};
|
|
19
19
|
const connectToCluster = async (clusterName) => {
|
|
20
|
-
|
|
20
|
+
const command = CLUSTER_TO_CMD_MAP[clusterName];
|
|
21
|
+
if (!command) {
|
|
22
|
+
throw new Error(`Cluster name ${clusterName} does not exist!`);
|
|
23
|
+
}
|
|
24
|
+
await terminalCommand(command);
|
|
21
25
|
};
|
|
22
26
|
export const connectAndGetPrefix = async ({ clusterName, variationId }) => {
|
|
23
27
|
await connectToCluster(clusterName);
|