@openworkflow/cli 0.3.1 → 0.4.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/dist/cli.js +1 -2
- package/dist/commands.js +3 -3
- package/package.json +2 -3
package/dist/cli.js
CHANGED
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
import { dashboard, doctor, getVersion, init, workerStart, } from "./commands.js";
|
|
4
4
|
import { withErrorHandling } from "./errors.js";
|
|
5
5
|
import { Command } from "commander";
|
|
6
|
-
// openworkflow
|
|
6
|
+
// openworkflow
|
|
7
7
|
const program = new Command();
|
|
8
8
|
program
|
|
9
9
|
.name("openworkflow")
|
|
10
|
-
.alias("ow")
|
|
11
10
|
.description("OpenWorkflow CLI - learn more at https://openworkflow.dev")
|
|
12
11
|
.version(getVersion());
|
|
13
12
|
// init
|
package/dist/commands.js
CHANGED
|
@@ -146,7 +146,7 @@ export async function doctor() {
|
|
|
146
146
|
consola.start("Running OpenWorkflow doctor...");
|
|
147
147
|
const { config, configFile } = await loadConfigWithEnv();
|
|
148
148
|
if (!configFile) {
|
|
149
|
-
throw new CLIError("No config file found.", "Run `
|
|
149
|
+
throw new CLIError("No config file found.", "Run `npx @openworkflow/cli init` to create a config file.");
|
|
150
150
|
}
|
|
151
151
|
const backend = config.backend;
|
|
152
152
|
try {
|
|
@@ -187,7 +187,7 @@ export async function workerStart(cliOptions) {
|
|
|
187
187
|
consola.start("Starting worker...");
|
|
188
188
|
const { config, configFile } = await loadConfigWithEnv();
|
|
189
189
|
if (!configFile) {
|
|
190
|
-
throw new CLIError("No config file found.", "Run `
|
|
190
|
+
throw new CLIError("No config file found.", "Run `npx @openworkflow/cli init` to create a config file.");
|
|
191
191
|
}
|
|
192
192
|
const backend = config.backend;
|
|
193
193
|
const ow = new OpenWorkflow({ backend });
|
|
@@ -243,7 +243,7 @@ export async function dashboard() {
|
|
|
243
243
|
consola.start("Starting dashboard...");
|
|
244
244
|
const { configFile } = await loadConfigWithEnv();
|
|
245
245
|
if (!configFile) {
|
|
246
|
-
throw new CLIError("No config file found.", "Run `
|
|
246
|
+
throw new CLIError("No config file found.", "Run `npx @openworkflow/cli init` to create a config file before starting the dashboard.");
|
|
247
247
|
}
|
|
248
248
|
consola.info(`Using config: ${configFile}`);
|
|
249
249
|
// eslint-disable-next-line sonarjs/no-os-command-from-path
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openworkflow/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -13,8 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"bin": {
|
|
16
|
-
"openworkflow": "./dist/cli.js"
|
|
17
|
-
"ow": "./dist/cli.js"
|
|
16
|
+
"openworkflow": "./dist/cli.js"
|
|
18
17
|
},
|
|
19
18
|
"files": [
|
|
20
19
|
"dist",
|