@adverant-nexus/cli 2.0.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.
- package/ARCHITECTURE.md +1366 -0
- package/LICENSE +21 -0
- package/README.md +593 -0
- package/completions/_nexus +452 -0
- package/completions/nexus.bash +329 -0
- package/completions/nexus.fish +187 -0
- package/dist/cli.d.ts +35 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +135 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/agent/index.d.ts +9 -0
- package/dist/commands/agent/index.d.ts.map +1 -0
- package/dist/commands/agent/index.js +20 -0
- package/dist/commands/agent/index.js.map +1 -0
- package/dist/commands/agent/list.d.ts +9 -0
- package/dist/commands/agent/list.d.ts.map +1 -0
- package/dist/commands/agent/list.js +122 -0
- package/dist/commands/agent/list.js.map +1 -0
- package/dist/commands/agent/run.d.ts +10 -0
- package/dist/commands/agent/run.d.ts.map +1 -0
- package/dist/commands/agent/run.js +167 -0
- package/dist/commands/agent/run.js.map +1 -0
- package/dist/commands/agent/status.d.ts +9 -0
- package/dist/commands/agent/status.d.ts.map +1 -0
- package/dist/commands/agent/status.js +157 -0
- package/dist/commands/agent/status.js.map +1 -0
- package/dist/commands/compute/agent.d.ts +21 -0
- package/dist/commands/compute/agent.d.ts.map +1 -0
- package/dist/commands/compute/agent.js +158 -0
- package/dist/commands/compute/agent.js.map +1 -0
- package/dist/commands/compute/index.d.ts +10 -0
- package/dist/commands/compute/index.d.ts.map +1 -0
- package/dist/commands/compute/index.js +27 -0
- package/dist/commands/compute/index.js.map +1 -0
- package/dist/commands/compute/lib/hardware-detection.d.ts +52 -0
- package/dist/commands/compute/lib/hardware-detection.d.ts.map +1 -0
- package/dist/commands/compute/lib/hardware-detection.js +432 -0
- package/dist/commands/compute/lib/hardware-detection.js.map +1 -0
- package/dist/commands/compute/lib/local-compute-agent.d.ts +143 -0
- package/dist/commands/compute/lib/local-compute-agent.d.ts.map +1 -0
- package/dist/commands/compute/lib/local-compute-agent.js +1162 -0
- package/dist/commands/compute/lib/local-compute-agent.js.map +1 -0
- package/dist/commands/compute/lib/local-compute-client.d.ts +89 -0
- package/dist/commands/compute/lib/local-compute-client.d.ts.map +1 -0
- package/dist/commands/compute/lib/local-compute-client.js +388 -0
- package/dist/commands/compute/lib/local-compute-client.js.map +1 -0
- package/dist/commands/compute/list.d.ts +14 -0
- package/dist/commands/compute/list.d.ts.map +1 -0
- package/dist/commands/compute/list.js +164 -0
- package/dist/commands/compute/list.js.map +1 -0
- package/dist/commands/compute/logs.d.ts +14 -0
- package/dist/commands/compute/logs.d.ts.map +1 -0
- package/dist/commands/compute/logs.js +105 -0
- package/dist/commands/compute/logs.js.map +1 -0
- package/dist/commands/compute/resources.d.ts +14 -0
- package/dist/commands/compute/resources.d.ts.map +1 -0
- package/dist/commands/compute/resources.js +163 -0
- package/dist/commands/compute/resources.js.map +1 -0
- package/dist/commands/compute/status.d.ts +13 -0
- package/dist/commands/compute/status.d.ts.map +1 -0
- package/dist/commands/compute/status.js +223 -0
- package/dist/commands/compute/status.js.map +1 -0
- package/dist/commands/compute/submit.d.ts +19 -0
- package/dist/commands/compute/submit.d.ts.map +1 -0
- package/dist/commands/compute/submit.js +99 -0
- package/dist/commands/compute/submit.js.map +1 -0
- package/dist/commands/deploy.d.ts +11 -0
- package/dist/commands/deploy.d.ts.map +1 -0
- package/dist/commands/deploy.js +117 -0
- package/dist/commands/deploy.js.map +1 -0
- package/dist/commands/dynamic/graphrag-commands.d.ts +16 -0
- package/dist/commands/dynamic/graphrag-commands.d.ts.map +1 -0
- package/dist/commands/dynamic/graphrag-commands.js +562 -0
- package/dist/commands/dynamic/graphrag-commands.js.map +1 -0
- package/dist/commands/dynamic/index.d.ts +10 -0
- package/dist/commands/dynamic/index.d.ts.map +1 -0
- package/dist/commands/dynamic/index.js +17 -0
- package/dist/commands/dynamic/index.js.map +1 -0
- package/dist/commands/dynamic/mageagent-commands.d.ts +8 -0
- package/dist/commands/dynamic/mageagent-commands.d.ts.map +1 -0
- package/dist/commands/dynamic/mageagent-commands.js +86 -0
- package/dist/commands/dynamic/mageagent-commands.js.map +1 -0
- package/dist/commands/dynamic/mcp-tool-mapper.d.ts +97 -0
- package/dist/commands/dynamic/mcp-tool-mapper.d.ts.map +1 -0
- package/dist/commands/dynamic/mcp-tool-mapper.js +328 -0
- package/dist/commands/dynamic/mcp-tool-mapper.js.map +1 -0
- package/dist/commands/dynamic/nexus-commands.d.ts +78 -0
- package/dist/commands/dynamic/nexus-commands.d.ts.map +1 -0
- package/dist/commands/dynamic/nexus-commands.js +426 -0
- package/dist/commands/dynamic/nexus-commands.js.map +1 -0
- package/dist/commands/dynamic/sandbox-commands.d.ts +8 -0
- package/dist/commands/dynamic/sandbox-commands.d.ts.map +1 -0
- package/dist/commands/dynamic/sandbox-commands.js +80 -0
- package/dist/commands/dynamic/sandbox-commands.js.map +1 -0
- package/dist/commands/init.d.ts +11 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +128 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/list.d.ts +10 -0
- package/dist/commands/list.d.ts.map +1 -0
- package/dist/commands/list.js +81 -0
- package/dist/commands/list.js.map +1 -0
- package/dist/commands/login.d.ts +10 -0
- package/dist/commands/login.d.ts.map +1 -0
- package/dist/commands/login.js +83 -0
- package/dist/commands/login.js.map +1 -0
- package/dist/commands/logs.d.ts +11 -0
- package/dist/commands/logs.d.ts.map +1 -0
- package/dist/commands/logs.js +79 -0
- package/dist/commands/logs.js.map +1 -0
- package/dist/commands/nexus/index.d.ts +69 -0
- package/dist/commands/nexus/index.d.ts.map +1 -0
- package/dist/commands/nexus/index.js +336 -0
- package/dist/commands/nexus/index.js.map +1 -0
- package/dist/commands/plugin/disable.d.ts +8 -0
- package/dist/commands/plugin/disable.d.ts.map +1 -0
- package/dist/commands/plugin/disable.js +31 -0
- package/dist/commands/plugin/disable.js.map +1 -0
- package/dist/commands/plugin/enable.d.ts +8 -0
- package/dist/commands/plugin/enable.d.ts.map +1 -0
- package/dist/commands/plugin/enable.js +37 -0
- package/dist/commands/plugin/enable.js.map +1 -0
- package/dist/commands/plugin/index.d.ts +8 -0
- package/dist/commands/plugin/index.d.ts.map +1 -0
- package/dist/commands/plugin/index.js +23 -0
- package/dist/commands/plugin/index.js.map +1 -0
- package/dist/commands/plugin/info.d.ts +8 -0
- package/dist/commands/plugin/info.d.ts.map +1 -0
- package/dist/commands/plugin/info.js +129 -0
- package/dist/commands/plugin/info.js.map +1 -0
- package/dist/commands/plugin/init.d.ts +8 -0
- package/dist/commands/plugin/init.d.ts.map +1 -0
- package/dist/commands/plugin/init.js +83 -0
- package/dist/commands/plugin/init.js.map +1 -0
- package/dist/commands/plugin/install.d.ts +8 -0
- package/dist/commands/plugin/install.d.ts.map +1 -0
- package/dist/commands/plugin/install.js +56 -0
- package/dist/commands/plugin/install.js.map +1 -0
- package/dist/commands/plugin/list.d.ts +8 -0
- package/dist/commands/plugin/list.d.ts.map +1 -0
- package/dist/commands/plugin/list.js +72 -0
- package/dist/commands/plugin/list.js.map +1 -0
- package/dist/commands/plugin/uninstall.d.ts +8 -0
- package/dist/commands/plugin/uninstall.d.ts.map +1 -0
- package/dist/commands/plugin/uninstall.js +49 -0
- package/dist/commands/plugin/uninstall.js.map +1 -0
- package/dist/commands/register.d.ts +10 -0
- package/dist/commands/register.d.ts.map +1 -0
- package/dist/commands/register.js +85 -0
- package/dist/commands/register.js.map +1 -0
- package/dist/commands/services/health.d.ts +7 -0
- package/dist/commands/services/health.d.ts.map +1 -0
- package/dist/commands/services/health.js +73 -0
- package/dist/commands/services/health.js.map +1 -0
- package/dist/commands/services/index.d.ts +16 -0
- package/dist/commands/services/index.d.ts.map +1 -0
- package/dist/commands/services/index.js +26 -0
- package/dist/commands/services/index.js.map +1 -0
- package/dist/commands/services/info.d.ts +7 -0
- package/dist/commands/services/info.d.ts.map +1 -0
- package/dist/commands/services/info.js +68 -0
- package/dist/commands/services/info.js.map +1 -0
- package/dist/commands/services/list.d.ts +9 -0
- package/dist/commands/services/list.d.ts.map +1 -0
- package/dist/commands/services/list.js +43 -0
- package/dist/commands/services/list.js.map +1 -0
- package/dist/commands/services/logs.d.ts +7 -0
- package/dist/commands/services/logs.d.ts.map +1 -0
- package/dist/commands/services/logs.js +107 -0
- package/dist/commands/services/logs.js.map +1 -0
- package/dist/commands/services/ports.d.ts +7 -0
- package/dist/commands/services/ports.d.ts.map +1 -0
- package/dist/commands/services/ports.js +65 -0
- package/dist/commands/services/ports.js.map +1 -0
- package/dist/commands/services/restart.d.ts +7 -0
- package/dist/commands/services/restart.d.ts.map +1 -0
- package/dist/commands/services/restart.js +67 -0
- package/dist/commands/services/restart.js.map +1 -0
- package/dist/commands/services/start.d.ts +7 -0
- package/dist/commands/services/start.d.ts.map +1 -0
- package/dist/commands/services/start.js +67 -0
- package/dist/commands/services/start.js.map +1 -0
- package/dist/commands/services/status.d.ts +9 -0
- package/dist/commands/services/status.d.ts.map +1 -0
- package/dist/commands/services/status.js +119 -0
- package/dist/commands/services/status.js.map +1 -0
- package/dist/commands/services/stop.d.ts +7 -0
- package/dist/commands/services/stop.d.ts.map +1 -0
- package/dist/commands/services/stop.js +67 -0
- package/dist/commands/services/stop.js.map +1 -0
- package/dist/commands/session/delete.d.ts +9 -0
- package/dist/commands/session/delete.d.ts.map +1 -0
- package/dist/commands/session/delete.js +51 -0
- package/dist/commands/session/delete.js.map +1 -0
- package/dist/commands/session/export.d.ts +9 -0
- package/dist/commands/session/export.d.ts.map +1 -0
- package/dist/commands/session/export.js +36 -0
- package/dist/commands/session/export.js.map +1 -0
- package/dist/commands/session/import.d.ts +9 -0
- package/dist/commands/session/import.d.ts.map +1 -0
- package/dist/commands/session/import.js +54 -0
- package/dist/commands/session/import.js.map +1 -0
- package/dist/commands/session/index.d.ts +9 -0
- package/dist/commands/session/index.d.ts.map +1 -0
- package/dist/commands/session/index.js +28 -0
- package/dist/commands/session/index.js.map +1 -0
- package/dist/commands/session/list.d.ts +9 -0
- package/dist/commands/session/list.d.ts.map +1 -0
- package/dist/commands/session/list.js +88 -0
- package/dist/commands/session/list.js.map +1 -0
- package/dist/commands/session/load.d.ts +9 -0
- package/dist/commands/session/load.d.ts.map +1 -0
- package/dist/commands/session/load.js +71 -0
- package/dist/commands/session/load.js.map +1 -0
- package/dist/commands/session/resume.d.ts +9 -0
- package/dist/commands/session/resume.d.ts.map +1 -0
- package/dist/commands/session/resume.js +49 -0
- package/dist/commands/session/resume.js.map +1 -0
- package/dist/commands/session/save.d.ts +9 -0
- package/dist/commands/session/save.d.ts.map +1 -0
- package/dist/commands/session/save.js +69 -0
- package/dist/commands/session/save.js.map +1 -0
- package/dist/commands/workspace/git-commit.d.ts +9 -0
- package/dist/commands/workspace/git-commit.d.ts.map +1 -0
- package/dist/commands/workspace/git-commit.js +156 -0
- package/dist/commands/workspace/git-commit.js.map +1 -0
- package/dist/commands/workspace/git-status.d.ts +9 -0
- package/dist/commands/workspace/git-status.d.ts.map +1 -0
- package/dist/commands/workspace/git-status.js +192 -0
- package/dist/commands/workspace/git-status.js.map +1 -0
- package/dist/commands/workspace/index.d.ts +9 -0
- package/dist/commands/workspace/index.d.ts.map +1 -0
- package/dist/commands/workspace/index.js +24 -0
- package/dist/commands/workspace/index.js.map +1 -0
- package/dist/commands/workspace/info.d.ts +10 -0
- package/dist/commands/workspace/info.d.ts.map +1 -0
- package/dist/commands/workspace/info.js +191 -0
- package/dist/commands/workspace/info.js.map +1 -0
- package/dist/commands/workspace/init.d.ts +9 -0
- package/dist/commands/workspace/init.d.ts.map +1 -0
- package/dist/commands/workspace/init.js +193 -0
- package/dist/commands/workspace/init.js.map +1 -0
- package/dist/commands/workspace/validate.d.ts +9 -0
- package/dist/commands/workspace/validate.d.ts.map +1 -0
- package/dist/commands/workspace/validate.js +140 -0
- package/dist/commands/workspace/validate.js.map +1 -0
- package/dist/core/agent-client.d.ts +49 -0
- package/dist/core/agent-client.d.ts.map +1 -0
- package/dist/core/agent-client.js +289 -0
- package/dist/core/agent-client.js.map +1 -0
- package/dist/core/config/config-manager.d.ts +75 -0
- package/dist/core/config/config-manager.d.ts.map +1 -0
- package/dist/core/config/config-manager.js +379 -0
- package/dist/core/config/config-manager.js.map +1 -0
- package/dist/core/config/profile-manager.d.ts +76 -0
- package/dist/core/config/profile-manager.d.ts.map +1 -0
- package/dist/core/config/profile-manager.js +250 -0
- package/dist/core/config/profile-manager.js.map +1 -0
- package/dist/core/config/workspace-detector.d.ts +66 -0
- package/dist/core/config/workspace-detector.d.ts.map +1 -0
- package/dist/core/config/workspace-detector.js +291 -0
- package/dist/core/config/workspace-detector.js.map +1 -0
- package/dist/core/discovery/docker-parser.d.ts +27 -0
- package/dist/core/discovery/docker-parser.d.ts.map +1 -0
- package/dist/core/discovery/docker-parser.js +361 -0
- package/dist/core/discovery/docker-parser.js.map +1 -0
- package/dist/core/discovery/index.d.ts +11 -0
- package/dist/core/discovery/index.d.ts.map +1 -0
- package/dist/core/discovery/index.js +16 -0
- package/dist/core/discovery/index.js.map +1 -0
- package/dist/core/discovery/mcp-discovery.d.ts +41 -0
- package/dist/core/discovery/mcp-discovery.d.ts.map +1 -0
- package/dist/core/discovery/mcp-discovery.js +439 -0
- package/dist/core/discovery/mcp-discovery.js.map +1 -0
- package/dist/core/discovery/openapi-parser.d.ts +95 -0
- package/dist/core/discovery/openapi-parser.d.ts.map +1 -0
- package/dist/core/discovery/openapi-parser.js +353 -0
- package/dist/core/discovery/openapi-parser.js.map +1 -0
- package/dist/core/discovery/plugin-discovery.d.ts +63 -0
- package/dist/core/discovery/plugin-discovery.d.ts.map +1 -0
- package/dist/core/discovery/plugin-discovery.js +333 -0
- package/dist/core/discovery/plugin-discovery.js.map +1 -0
- package/dist/core/discovery/service-discovery.d.ts +107 -0
- package/dist/core/discovery/service-discovery.d.ts.map +1 -0
- package/dist/core/discovery/service-discovery.js +349 -0
- package/dist/core/discovery/service-discovery.js.map +1 -0
- package/dist/core/nexus-client.d.ts +119 -0
- package/dist/core/nexus-client.d.ts.map +1 -0
- package/dist/core/nexus-client.js +292 -0
- package/dist/core/nexus-client.js.map +1 -0
- package/dist/core/nexus-tool-executor.d.ts +102 -0
- package/dist/core/nexus-tool-executor.d.ts.map +1 -0
- package/dist/core/nexus-tool-executor.js +386 -0
- package/dist/core/nexus-tool-executor.js.map +1 -0
- package/dist/core/react-handler.d.ts +17 -0
- package/dist/core/react-handler.d.ts.map +1 -0
- package/dist/core/react-handler.js +296 -0
- package/dist/core/react-handler.js.map +1 -0
- package/dist/core/router/command-registry.d.ts +61 -0
- package/dist/core/router/command-registry.d.ts.map +1 -0
- package/dist/core/router/command-registry.js +138 -0
- package/dist/core/router/command-registry.js.map +1 -0
- package/dist/core/router/command-router.d.ts +33 -0
- package/dist/core/router/command-router.d.ts.map +1 -0
- package/dist/core/router/command-router.js +111 -0
- package/dist/core/router/command-router.js.map +1 -0
- package/dist/core/router/index.d.ts +9 -0
- package/dist/core/router/index.d.ts.map +1 -0
- package/dist/core/router/index.js +8 -0
- package/dist/core/router/index.js.map +1 -0
- package/dist/core/session/context-manager.d.ts +69 -0
- package/dist/core/session/context-manager.d.ts.map +1 -0
- package/dist/core/session/context-manager.js +109 -0
- package/dist/core/session/context-manager.js.map +1 -0
- package/dist/core/session/history-manager.d.ts +72 -0
- package/dist/core/session/history-manager.d.ts.map +1 -0
- package/dist/core/session/history-manager.js +175 -0
- package/dist/core/session/history-manager.js.map +1 -0
- package/dist/core/session/index.d.ts +9 -0
- package/dist/core/session/index.d.ts.map +1 -0
- package/dist/core/session/index.js +9 -0
- package/dist/core/session/index.js.map +1 -0
- package/dist/core/session/session-manager.d.ts +50 -0
- package/dist/core/session/session-manager.d.ts.map +1 -0
- package/dist/core/session/session-manager.js +200 -0
- package/dist/core/session/session-manager.js.map +1 -0
- package/dist/core/session/session-storage.d.ts +59 -0
- package/dist/core/session/session-storage.d.ts.map +1 -0
- package/dist/core/session/session-storage.js +226 -0
- package/dist/core/session/session-storage.js.map +1 -0
- package/dist/core/transport/http-client.d.ts +27 -0
- package/dist/core/transport/http-client.d.ts.map +1 -0
- package/dist/core/transport/http-client.js +182 -0
- package/dist/core/transport/http-client.js.map +1 -0
- package/dist/core/transport/index.d.ts +11 -0
- package/dist/core/transport/index.d.ts.map +1 -0
- package/dist/core/transport/index.js +10 -0
- package/dist/core/transport/index.js.map +1 -0
- package/dist/core/transport/mcp-client.d.ts +69 -0
- package/dist/core/transport/mcp-client.d.ts.map +1 -0
- package/dist/core/transport/mcp-client.js +252 -0
- package/dist/core/transport/mcp-client.js.map +1 -0
- package/dist/core/transport/stream-handler.d.ts +51 -0
- package/dist/core/transport/stream-handler.d.ts.map +1 -0
- package/dist/core/transport/stream-handler.js +264 -0
- package/dist/core/transport/stream-handler.js.map +1 -0
- package/dist/core/transport/websocket-client.d.ts +66 -0
- package/dist/core/transport/websocket-client.d.ts.map +1 -0
- package/dist/core/transport/websocket-client.js +232 -0
- package/dist/core/transport/websocket-client.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +106 -0
- package/dist/index.js.map +1 -0
- package/dist/output/formatters/index.d.ts +9 -0
- package/dist/output/formatters/index.d.ts.map +1 -0
- package/dist/output/formatters/index.js +9 -0
- package/dist/output/formatters/index.js.map +1 -0
- package/dist/output/formatters/json-formatter.d.ts +71 -0
- package/dist/output/formatters/json-formatter.d.ts.map +1 -0
- package/dist/output/formatters/json-formatter.js +236 -0
- package/dist/output/formatters/json-formatter.js.map +1 -0
- package/dist/output/formatters/stream-formatter.d.ts +107 -0
- package/dist/output/formatters/stream-formatter.d.ts.map +1 -0
- package/dist/output/formatters/stream-formatter.js +247 -0
- package/dist/output/formatters/stream-formatter.js.map +1 -0
- package/dist/output/formatters/table-formatter.d.ts +63 -0
- package/dist/output/formatters/table-formatter.d.ts.map +1 -0
- package/dist/output/formatters/table-formatter.js +294 -0
- package/dist/output/formatters/table-formatter.js.map +1 -0
- package/dist/output/formatters/text-formatter.d.ts +63 -0
- package/dist/output/formatters/text-formatter.d.ts.map +1 -0
- package/dist/output/formatters/text-formatter.js +202 -0
- package/dist/output/formatters/text-formatter.js.map +1 -0
- package/dist/output/formatters/yaml-formatter.d.ts +71 -0
- package/dist/output/formatters/yaml-formatter.d.ts.map +1 -0
- package/dist/output/formatters/yaml-formatter.js +239 -0
- package/dist/output/formatters/yaml-formatter.js.map +1 -0
- package/dist/output/index.d.ts +7 -0
- package/dist/output/index.d.ts.map +1 -0
- package/dist/output/index.js +7 -0
- package/dist/output/index.js.map +1 -0
- package/dist/output/output-manager.d.ts +156 -0
- package/dist/output/output-manager.d.ts.map +1 -0
- package/dist/output/output-manager.js +339 -0
- package/dist/output/output-manager.js.map +1 -0
- package/dist/output/renderers/index.d.ts +6 -0
- package/dist/output/renderers/index.d.ts.map +1 -0
- package/dist/output/renderers/index.js +6 -0
- package/dist/output/renderers/index.js.map +1 -0
- package/dist/output/renderers/progress-renderer.d.ts +56 -0
- package/dist/output/renderers/progress-renderer.d.ts.map +1 -0
- package/dist/output/renderers/progress-renderer.js +306 -0
- package/dist/output/renderers/progress-renderer.js.map +1 -0
- package/dist/output/renderers/terminal-renderer.d.ts +117 -0
- package/dist/output/renderers/terminal-renderer.d.ts.map +1 -0
- package/dist/output/renderers/terminal-renderer.js +294 -0
- package/dist/output/renderers/terminal-renderer.js.map +1 -0
- package/dist/plugins/index.d.ts +12 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/index.js +18 -0
- package/dist/plugins/index.js.map +1 -0
- package/dist/plugins/plugin-loader.d.ts +37 -0
- package/dist/plugins/plugin-loader.d.ts.map +1 -0
- package/dist/plugins/plugin-loader.js +155 -0
- package/dist/plugins/plugin-loader.js.map +1 -0
- package/dist/plugins/plugin-manager.d.ts +78 -0
- package/dist/plugins/plugin-manager.d.ts.map +1 -0
- package/dist/plugins/plugin-manager.js +310 -0
- package/dist/plugins/plugin-manager.js.map +1 -0
- package/dist/plugins/plugin-sdk.d.ts +136 -0
- package/dist/plugins/plugin-sdk.d.ts.map +1 -0
- package/dist/plugins/plugin-sdk.js +260 -0
- package/dist/plugins/plugin-sdk.js.map +1 -0
- package/dist/plugins/plugin-storage.d.ts +109 -0
- package/dist/plugins/plugin-storage.d.ts.map +1 -0
- package/dist/plugins/plugin-storage.js +207 -0
- package/dist/plugins/plugin-storage.js.map +1 -0
- package/dist/plugins/plugin-validator.d.ts +44 -0
- package/dist/plugins/plugin-validator.d.ts.map +1 -0
- package/dist/plugins/plugin-validator.js +272 -0
- package/dist/plugins/plugin-validator.js.map +1 -0
- package/dist/plugins/template-generator.d.ts +35 -0
- package/dist/plugins/template-generator.d.ts.map +1 -0
- package/dist/plugins/template-generator.js +438 -0
- package/dist/plugins/template-generator.js.map +1 -0
- package/dist/repl/completer.d.ts +58 -0
- package/dist/repl/completer.d.ts.map +1 -0
- package/dist/repl/completer.js +198 -0
- package/dist/repl/completer.js.map +1 -0
- package/dist/repl/evaluator.d.ts +55 -0
- package/dist/repl/evaluator.d.ts.map +1 -0
- package/dist/repl/evaluator.js +299 -0
- package/dist/repl/evaluator.js.map +1 -0
- package/dist/repl/index.d.ts +10 -0
- package/dist/repl/index.d.ts.map +1 -0
- package/dist/repl/index.js +10 -0
- package/dist/repl/index.js.map +1 -0
- package/dist/repl/renderer.d.ts +77 -0
- package/dist/repl/renderer.d.ts.map +1 -0
- package/dist/repl/renderer.js +291 -0
- package/dist/repl/renderer.js.map +1 -0
- package/dist/repl/repl.d.ts +89 -0
- package/dist/repl/repl.d.ts.map +1 -0
- package/dist/repl/repl.js +339 -0
- package/dist/repl/repl.js.map +1 -0
- package/dist/templates/python.d.ts +15 -0
- package/dist/templates/python.d.ts.map +1 -0
- package/dist/templates/python.js +375 -0
- package/dist/templates/python.js.map +1 -0
- package/dist/templates/typescript.d.ts +15 -0
- package/dist/templates/typescript.d.ts.map +1 -0
- package/dist/templates/typescript.js +274 -0
- package/dist/templates/typescript.js.map +1 -0
- package/dist/types/agent.d.ts +109 -0
- package/dist/types/agent.d.ts.map +1 -0
- package/dist/types/agent.js +7 -0
- package/dist/types/agent.js.map +1 -0
- package/dist/types/api.d.ts +125 -0
- package/dist/types/api.d.ts.map +1 -0
- package/dist/types/api.js +53 -0
- package/dist/types/api.js.map +1 -0
- package/dist/types/command.d.ts +101 -0
- package/dist/types/command.d.ts.map +1 -0
- package/dist/types/command.js +7 -0
- package/dist/types/command.js.map +1 -0
- package/dist/types/compute.d.ts +317 -0
- package/dist/types/compute.d.ts.map +1 -0
- package/dist/types/compute.js +19 -0
- package/dist/types/compute.js.map +1 -0
- package/dist/types/config.d.ts +71 -0
- package/dist/types/config.d.ts.map +1 -0
- package/dist/types/config.js +7 -0
- package/dist/types/config.js.map +1 -0
- package/dist/types/errors.d.ts +56 -0
- package/dist/types/errors.d.ts.map +1 -0
- package/dist/types/errors.js +64 -0
- package/dist/types/errors.js.map +1 -0
- package/dist/types/index.d.ts +16 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +16 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/nexus.d.ts +254 -0
- package/dist/types/nexus.d.ts.map +1 -0
- package/dist/types/nexus.js +7 -0
- package/dist/types/nexus.js.map +1 -0
- package/dist/types/output.d.ts +107 -0
- package/dist/types/output.d.ts.map +1 -0
- package/dist/types/output.js +7 -0
- package/dist/types/output.js.map +1 -0
- package/dist/types/plugin.d.ts +118 -0
- package/dist/types/plugin.d.ts.map +1 -0
- package/dist/types/plugin.js +7 -0
- package/dist/types/plugin.js.map +1 -0
- package/dist/types/service.d.ts +94 -0
- package/dist/types/service.d.ts.map +1 -0
- package/dist/types/service.js +15 -0
- package/dist/types/service.js.map +1 -0
- package/dist/types/session.d.ts +80 -0
- package/dist/types/session.d.ts.map +1 -0
- package/dist/types/session.js +7 -0
- package/dist/types/session.js.map +1 -0
- package/dist/types/transport.d.ts +96 -0
- package/dist/types/transport.d.ts.map +1 -0
- package/dist/types/transport.js +7 -0
- package/dist/types/transport.js.map +1 -0
- package/dist/utils/config.d.ts +47 -0
- package/dist/utils/config.d.ts.map +1 -0
- package/dist/utils/config.js +166 -0
- package/dist/utils/config.js.map +1 -0
- package/dist/utils/error-handler.d.ts +82 -0
- package/dist/utils/error-handler.d.ts.map +1 -0
- package/dist/utils/error-handler.js +238 -0
- package/dist/utils/error-handler.js.map +1 -0
- package/dist/utils/index.d.ts +9 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +9 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/logger.d.ts +61 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +200 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/prompt.d.ts +57 -0
- package/dist/utils/prompt.d.ts.map +1 -0
- package/dist/utils/prompt.js +141 -0
- package/dist/utils/prompt.js.map +1 -0
- package/dist/utils/spinner.d.ts +47 -0
- package/dist/utils/spinner.d.ts.map +1 -0
- package/dist/utils/spinner.js +123 -0
- package/dist/utils/spinner.js.map +1 -0
- package/dist/utils/validation.d.ts +97 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/utils/validation.js +289 -0
- package/dist/utils/validation.js.map +1 -0
- package/docs/COMPLETIONS.md +528 -0
- package/docs/REPL.md +466 -0
- package/docs/graphrag-commands.md +387 -0
- package/package.json +154 -0
- package/scripts/install-completions.sh +356 -0
- package/scripts/prepublish.js +522 -0
- package/scripts/verify-package.js +505 -0
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Installation script for Nexus CLI shell completions
|
|
3
|
+
# Automatically detects shell and installs appropriate completion file
|
|
4
|
+
|
|
5
|
+
set -e
|
|
6
|
+
|
|
7
|
+
# Colors for output
|
|
8
|
+
RED='\033[0;31m'
|
|
9
|
+
GREEN='\033[0;32m'
|
|
10
|
+
YELLOW='\033[1;33m'
|
|
11
|
+
BLUE='\033[0;34m'
|
|
12
|
+
CYAN='\033[0;36m'
|
|
13
|
+
NC='\033[0m' # No Color
|
|
14
|
+
|
|
15
|
+
# Get the directory where this script is located
|
|
16
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
17
|
+
COMPLETIONS_DIR="$(cd "${SCRIPT_DIR}/../completions" && pwd)"
|
|
18
|
+
|
|
19
|
+
# Helper functions
|
|
20
|
+
print_info() {
|
|
21
|
+
echo -e "${CYAN}ℹ${NC} $1"
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
print_success() {
|
|
25
|
+
echo -e "${GREEN}✓${NC} $1"
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
print_warning() {
|
|
29
|
+
echo -e "${YELLOW}⚠${NC} $1"
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
print_error() {
|
|
33
|
+
echo -e "${RED}✗${NC} $1"
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
print_header() {
|
|
37
|
+
echo -e "${BLUE}═══════════════════════════════════════════════════════${NC}"
|
|
38
|
+
echo -e "${BLUE} Nexus CLI - Shell Completions Installer${NC}"
|
|
39
|
+
echo -e "${BLUE}═══════════════════════════════════════════════════════${NC}"
|
|
40
|
+
echo
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
# Detect current shell
|
|
44
|
+
detect_shell() {
|
|
45
|
+
local shell_name
|
|
46
|
+
|
|
47
|
+
# Try SHELL environment variable first
|
|
48
|
+
if [ -n "$SHELL" ]; then
|
|
49
|
+
shell_name=$(basename "$SHELL")
|
|
50
|
+
else
|
|
51
|
+
# Fallback to parent process
|
|
52
|
+
shell_name=$(ps -p $$ -o comm= 2>/dev/null || echo "unknown")
|
|
53
|
+
fi
|
|
54
|
+
|
|
55
|
+
echo "$shell_name"
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
# Install Bash completions
|
|
59
|
+
install_bash() {
|
|
60
|
+
print_info "Installing Bash completions..."
|
|
61
|
+
|
|
62
|
+
local completion_file="${COMPLETIONS_DIR}/nexus.bash"
|
|
63
|
+
local installed=0
|
|
64
|
+
|
|
65
|
+
# Try system-wide installation (requires sudo)
|
|
66
|
+
if [ -w /etc/bash_completion.d ] || [ "$(id -u)" -eq 0 ]; then
|
|
67
|
+
print_info "Installing to /etc/bash_completion.d/ (system-wide)"
|
|
68
|
+
cp "$completion_file" /etc/bash_completion.d/nexus
|
|
69
|
+
print_success "Installed to /etc/bash_completion.d/nexus"
|
|
70
|
+
installed=1
|
|
71
|
+
elif [ -d /usr/local/etc/bash_completion.d ] && [ -w /usr/local/etc/bash_completion.d ]; then
|
|
72
|
+
# macOS/Homebrew location
|
|
73
|
+
print_info "Installing to /usr/local/etc/bash_completion.d/ (Homebrew)"
|
|
74
|
+
cp "$completion_file" /usr/local/etc/bash_completion.d/nexus
|
|
75
|
+
print_success "Installed to /usr/local/etc/bash_completion.d/nexus"
|
|
76
|
+
installed=1
|
|
77
|
+
fi
|
|
78
|
+
|
|
79
|
+
# User-local installation
|
|
80
|
+
local user_dir="${HOME}/.local/share/bash-completion/completions"
|
|
81
|
+
mkdir -p "$user_dir"
|
|
82
|
+
cp "$completion_file" "${user_dir}/nexus"
|
|
83
|
+
print_success "Installed to ${user_dir}/nexus"
|
|
84
|
+
installed=1
|
|
85
|
+
|
|
86
|
+
# Add to .bashrc if not already present
|
|
87
|
+
local bashrc="${HOME}/.bashrc"
|
|
88
|
+
if [ -f "$bashrc" ]; then
|
|
89
|
+
if ! grep -q "nexus.bash" "$bashrc" 2>/dev/null; then
|
|
90
|
+
echo "" >> "$bashrc"
|
|
91
|
+
echo "# Nexus CLI completions" >> "$bashrc"
|
|
92
|
+
echo "[ -f \"${user_dir}/nexus\" ] && source \"${user_dir}/nexus\"" >> "$bashrc"
|
|
93
|
+
print_success "Added source command to ~/.bashrc"
|
|
94
|
+
fi
|
|
95
|
+
fi
|
|
96
|
+
|
|
97
|
+
if [ $installed -eq 1 ]; then
|
|
98
|
+
print_success "Bash completions installed successfully!"
|
|
99
|
+
print_info "Run 'source ~/.bashrc' or restart your shell to activate"
|
|
100
|
+
return 0
|
|
101
|
+
else
|
|
102
|
+
print_error "Failed to install Bash completions"
|
|
103
|
+
print_manual_bash
|
|
104
|
+
return 1
|
|
105
|
+
fi
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
# Install Zsh completions
|
|
109
|
+
install_zsh() {
|
|
110
|
+
print_info "Installing Zsh completions..."
|
|
111
|
+
|
|
112
|
+
local completion_file="${COMPLETIONS_DIR}/_nexus"
|
|
113
|
+
local installed=0
|
|
114
|
+
|
|
115
|
+
# Find zsh fpath directories
|
|
116
|
+
local fpath_dirs=(
|
|
117
|
+
"${HOME}/.zsh/completions"
|
|
118
|
+
"${HOME}/.local/share/zsh/site-functions"
|
|
119
|
+
"/usr/local/share/zsh/site-functions"
|
|
120
|
+
)
|
|
121
|
+
|
|
122
|
+
# Try to install to first writable directory
|
|
123
|
+
for dir in "${fpath_dirs[@]}"; do
|
|
124
|
+
if [ -d "$dir" ] && [ -w "$dir" ]; then
|
|
125
|
+
cp "$completion_file" "${dir}/_nexus"
|
|
126
|
+
print_success "Installed to ${dir}/_nexus"
|
|
127
|
+
installed=1
|
|
128
|
+
break
|
|
129
|
+
elif [ ! -d "$dir" ]; then
|
|
130
|
+
# Try to create directory
|
|
131
|
+
if mkdir -p "$dir" 2>/dev/null; then
|
|
132
|
+
cp "$completion_file" "${dir}/_nexus"
|
|
133
|
+
print_success "Created ${dir} and installed completion"
|
|
134
|
+
installed=1
|
|
135
|
+
break
|
|
136
|
+
fi
|
|
137
|
+
fi
|
|
138
|
+
done
|
|
139
|
+
|
|
140
|
+
# If no standard location worked, install to custom location
|
|
141
|
+
if [ $installed -eq 0 ]; then
|
|
142
|
+
local custom_dir="${HOME}/.zsh/completions"
|
|
143
|
+
mkdir -p "$custom_dir"
|
|
144
|
+
cp "$completion_file" "${custom_dir}/_nexus"
|
|
145
|
+
print_success "Installed to ${custom_dir}/_nexus"
|
|
146
|
+
|
|
147
|
+
# Add to fpath in .zshrc
|
|
148
|
+
local zshrc="${HOME}/.zshrc"
|
|
149
|
+
if [ -f "$zshrc" ]; then
|
|
150
|
+
if ! grep -q "${custom_dir}" "$zshrc" 2>/dev/null; then
|
|
151
|
+
echo "" >> "$zshrc"
|
|
152
|
+
echo "# Nexus CLI completions" >> "$zshrc"
|
|
153
|
+
echo "fpath=(${custom_dir} \$fpath)" >> "$zshrc"
|
|
154
|
+
echo "autoload -Uz compinit && compinit" >> "$zshrc"
|
|
155
|
+
print_success "Added fpath to ~/.zshrc"
|
|
156
|
+
fi
|
|
157
|
+
fi
|
|
158
|
+
installed=1
|
|
159
|
+
fi
|
|
160
|
+
|
|
161
|
+
if [ $installed -eq 1 ]; then
|
|
162
|
+
print_success "Zsh completions installed successfully!"
|
|
163
|
+
print_info "Run 'exec zsh' or restart your shell to activate"
|
|
164
|
+
print_info "You may need to run 'rm -f ~/.zcompdump; compinit' to rebuild completion cache"
|
|
165
|
+
return 0
|
|
166
|
+
else
|
|
167
|
+
print_error "Failed to install Zsh completions"
|
|
168
|
+
print_manual_zsh
|
|
169
|
+
return 1
|
|
170
|
+
fi
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
# Install Fish completions
|
|
174
|
+
install_fish() {
|
|
175
|
+
print_info "Installing Fish completions..."
|
|
176
|
+
|
|
177
|
+
local completion_file="${COMPLETIONS_DIR}/nexus.fish"
|
|
178
|
+
local fish_dir="${HOME}/.config/fish/completions"
|
|
179
|
+
|
|
180
|
+
# Create Fish completions directory
|
|
181
|
+
mkdir -p "$fish_dir"
|
|
182
|
+
|
|
183
|
+
# Copy completion file
|
|
184
|
+
cp "$completion_file" "${fish_dir}/nexus.fish"
|
|
185
|
+
print_success "Installed to ${fish_dir}/nexus.fish"
|
|
186
|
+
|
|
187
|
+
print_success "Fish completions installed successfully!"
|
|
188
|
+
print_info "Completions are active immediately in new Fish sessions"
|
|
189
|
+
return 0
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
# Manual installation instructions for Bash
|
|
193
|
+
print_manual_bash() {
|
|
194
|
+
cat << EOF
|
|
195
|
+
|
|
196
|
+
${YELLOW}Manual Installation Instructions for Bash:${NC}
|
|
197
|
+
|
|
198
|
+
1. Copy the completion file:
|
|
199
|
+
${CYAN}cp "${COMPLETIONS_DIR}/nexus.bash" ~/.local/share/bash-completion/completions/nexus${NC}
|
|
200
|
+
|
|
201
|
+
2. Add to your ~/.bashrc:
|
|
202
|
+
${CYAN}echo 'source ~/.local/share/bash-completion/completions/nexus' >> ~/.bashrc${NC}
|
|
203
|
+
|
|
204
|
+
3. Reload your shell:
|
|
205
|
+
${CYAN}source ~/.bashrc${NC}
|
|
206
|
+
|
|
207
|
+
EOF
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
# Manual installation instructions for Zsh
|
|
211
|
+
print_manual_zsh() {
|
|
212
|
+
cat << EOF
|
|
213
|
+
|
|
214
|
+
${YELLOW}Manual Installation Instructions for Zsh:${NC}
|
|
215
|
+
|
|
216
|
+
1. Create completions directory:
|
|
217
|
+
${CYAN}mkdir -p ~/.zsh/completions${NC}
|
|
218
|
+
|
|
219
|
+
2. Copy the completion file:
|
|
220
|
+
${CYAN}cp "${COMPLETIONS_DIR}/_nexus" ~/.zsh/completions/_nexus${NC}
|
|
221
|
+
|
|
222
|
+
3. Add to your ~/.zshrc:
|
|
223
|
+
${CYAN}echo 'fpath=(~/.zsh/completions \$fpath)' >> ~/.zshrc${NC}
|
|
224
|
+
${CYAN}echo 'autoload -Uz compinit && compinit' >> ~/.zshrc${NC}
|
|
225
|
+
|
|
226
|
+
4. Reload your shell:
|
|
227
|
+
${CYAN}exec zsh${NC}
|
|
228
|
+
|
|
229
|
+
EOF
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
# Manual installation instructions for Fish
|
|
233
|
+
print_manual_fish() {
|
|
234
|
+
cat << EOF
|
|
235
|
+
|
|
236
|
+
${YELLOW}Manual Installation Instructions for Fish:${NC}
|
|
237
|
+
|
|
238
|
+
1. Copy the completion file:
|
|
239
|
+
${CYAN}cp "${COMPLETIONS_DIR}/nexus.fish" ~/.config/fish/completions/nexus.fish${NC}
|
|
240
|
+
|
|
241
|
+
2. Completions are active immediately in new Fish sessions
|
|
242
|
+
|
|
243
|
+
EOF
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
# Main installation function
|
|
247
|
+
install_for_shell() {
|
|
248
|
+
local shell_name="$1"
|
|
249
|
+
|
|
250
|
+
case "$shell_name" in
|
|
251
|
+
bash)
|
|
252
|
+
install_bash
|
|
253
|
+
;;
|
|
254
|
+
zsh)
|
|
255
|
+
install_zsh
|
|
256
|
+
;;
|
|
257
|
+
fish)
|
|
258
|
+
install_fish
|
|
259
|
+
;;
|
|
260
|
+
*)
|
|
261
|
+
print_error "Unsupported shell: $shell_name"
|
|
262
|
+
print_info "Supported shells: bash, zsh, fish"
|
|
263
|
+
return 1
|
|
264
|
+
;;
|
|
265
|
+
esac
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
# Show all available completions
|
|
269
|
+
show_available() {
|
|
270
|
+
echo
|
|
271
|
+
print_info "Available completion files:"
|
|
272
|
+
echo
|
|
273
|
+
ls -lh "$COMPLETIONS_DIR" | tail -n +2 | while read -r line; do
|
|
274
|
+
echo " $line"
|
|
275
|
+
done
|
|
276
|
+
echo
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
# Main script
|
|
280
|
+
main() {
|
|
281
|
+
print_header
|
|
282
|
+
|
|
283
|
+
# Parse arguments
|
|
284
|
+
local shell_arg=""
|
|
285
|
+
local auto_detect=1
|
|
286
|
+
|
|
287
|
+
while [ $# -gt 0 ]; do
|
|
288
|
+
case "$1" in
|
|
289
|
+
--shell|-s)
|
|
290
|
+
shell_arg="$2"
|
|
291
|
+
auto_detect=0
|
|
292
|
+
shift 2
|
|
293
|
+
;;
|
|
294
|
+
--list|-l)
|
|
295
|
+
show_available
|
|
296
|
+
exit 0
|
|
297
|
+
;;
|
|
298
|
+
--help|-h)
|
|
299
|
+
cat << EOF
|
|
300
|
+
${CYAN}Nexus CLI Shell Completions Installer${NC}
|
|
301
|
+
|
|
302
|
+
${YELLOW}Usage:${NC}
|
|
303
|
+
$0 [options]
|
|
304
|
+
|
|
305
|
+
${YELLOW}Options:${NC}
|
|
306
|
+
-s, --shell SHELL Install for specific shell (bash, zsh, fish)
|
|
307
|
+
-l, --list List available completion files
|
|
308
|
+
-h, --help Show this help message
|
|
309
|
+
|
|
310
|
+
${YELLOW}Examples:${NC}
|
|
311
|
+
$0 Auto-detect shell and install
|
|
312
|
+
$0 --shell bash Install for Bash
|
|
313
|
+
$0 --shell zsh Install for Zsh
|
|
314
|
+
$0 --shell fish Install for Fish
|
|
315
|
+
|
|
316
|
+
${YELLOW}Supported Shells:${NC}
|
|
317
|
+
• Bash - Bourne Again Shell
|
|
318
|
+
• Zsh - Z Shell
|
|
319
|
+
• Fish - Friendly Interactive Shell
|
|
320
|
+
|
|
321
|
+
EOF
|
|
322
|
+
exit 0
|
|
323
|
+
;;
|
|
324
|
+
*)
|
|
325
|
+
print_error "Unknown option: $1"
|
|
326
|
+
print_info "Use --help for usage information"
|
|
327
|
+
exit 1
|
|
328
|
+
;;
|
|
329
|
+
esac
|
|
330
|
+
done
|
|
331
|
+
|
|
332
|
+
# Detect or use specified shell
|
|
333
|
+
local target_shell
|
|
334
|
+
if [ $auto_detect -eq 1 ]; then
|
|
335
|
+
target_shell=$(detect_shell)
|
|
336
|
+
print_info "Detected shell: $target_shell"
|
|
337
|
+
else
|
|
338
|
+
target_shell="$shell_arg"
|
|
339
|
+
print_info "Installing for: $target_shell"
|
|
340
|
+
fi
|
|
341
|
+
|
|
342
|
+
# Install completions
|
|
343
|
+
if install_for_shell "$target_shell"; then
|
|
344
|
+
echo
|
|
345
|
+
print_success "Installation complete!"
|
|
346
|
+
echo
|
|
347
|
+
print_info "To install for other shells, run:"
|
|
348
|
+
echo " ${CYAN}$0 --shell <bash|zsh|fish>${NC}"
|
|
349
|
+
echo
|
|
350
|
+
else
|
|
351
|
+
exit 1
|
|
352
|
+
fi
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
# Run main function
|
|
356
|
+
main "$@"
|