@zuplo/cli 1.35.0 → 1.36.0
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.
|
@@ -29,6 +29,7 @@ export async function deleteTunnel(argv) {
|
|
|
29
29
|
printResultToConsoleAndExitGracefully(`Tunnel ${argv["tunnel-id"]} deleted successfully.`);
|
|
30
30
|
}
|
|
31
31
|
else {
|
|
32
|
+
printDiagnosticsToConsole(polledTearDownOperation.details);
|
|
32
33
|
printCriticalFailureToConsoleAndExit(`Tunnel ${argv["tunnel-id"]} failed to delete. Here's the error: ${polledTearDownOperation.message}`);
|
|
33
34
|
}
|
|
34
35
|
}
|
|
@@ -18,12 +18,12 @@ export async function list(argv) {
|
|
|
18
18
|
});
|
|
19
19
|
if (listResponse.ok) {
|
|
20
20
|
const tunnels = await listResponse.json();
|
|
21
|
-
if (tunnels.length === 0) {
|
|
21
|
+
if (tunnels.data.length === 0) {
|
|
22
22
|
const output = "No tunnels found";
|
|
23
23
|
printResultToConsoleAndExitGracefully(output);
|
|
24
24
|
}
|
|
25
25
|
else {
|
|
26
|
-
const table = tunnels.map((tunnel) => {
|
|
26
|
+
const table = tunnels.data.map((tunnel) => {
|
|
27
27
|
return { "tunnel-id": tunnel.id, name: tunnel.name };
|
|
28
28
|
});
|
|
29
29
|
printTableToConsoleAndExitGracefully(table);
|
|
@@ -39,6 +39,7 @@ export async function updateServices(argv) {
|
|
|
39
39
|
printResultToConsoleAndExitGracefully(`Tunnel ${argv["tunnel-id"]} updated successfully.`);
|
|
40
40
|
}
|
|
41
41
|
else {
|
|
42
|
+
printDiagnosticsToConsole(polledProvisioningOperation.details);
|
|
42
43
|
printCriticalFailureToConsoleAndExit(`Tunnel ${argv["tunnel-id"]} failed to update. Here's the error: ${polledProvisioningOperation.message}`);
|
|
43
44
|
}
|
|
44
45
|
}
|