@boltic/cli 1.0.34 → 1.0.35
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/cli.js +1 -7
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -4,8 +4,8 @@ import path from "path";
|
|
|
4
4
|
import { fileURLToPath } from "url";
|
|
5
5
|
import EnvironmentCommands from "./commands/env.js";
|
|
6
6
|
import IntegrationCommands from "./commands/integration.js";
|
|
7
|
-
import McpCommands from "./commands/mcp.js";
|
|
8
7
|
import AuthCommands from "./commands/login.js";
|
|
8
|
+
import McpCommands from "./commands/mcp.js";
|
|
9
9
|
|
|
10
10
|
// Create a CLI module with functional approach
|
|
11
11
|
import { findSimilarCommands } from "./helper/command-suggestions.js";
|
|
@@ -82,12 +82,6 @@ const createCLI = (consoleUrl, apiUrl, serviceName, env) => {
|
|
|
82
82
|
return;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
if (!subCommand) {
|
|
86
|
-
// Show help for the command if no subcommand is provided
|
|
87
|
-
const commandObj = commands[command];
|
|
88
|
-
await commandObj.action(args.slice(3));
|
|
89
|
-
}
|
|
90
|
-
|
|
91
85
|
// Check if user is authenticated for all commands except login, logout, help, and version
|
|
92
86
|
if (
|
|
93
87
|
command !== "login" &&
|
package/package.json
CHANGED