@dimescheduler/setup 0.1.0 → 0.1.1
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/README.md +3 -3
- package/dist/index.js +2 -2
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @dimescheduler/setup
|
|
2
2
|
|
|
3
|
-
CLI tool to validate, compile, and deploy Dime
|
|
3
|
+
CLI tool to validate, compile, and deploy Dime.Scheduler configurations.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -18,7 +18,7 @@ npx @dimescheduler/setup <command>
|
|
|
18
18
|
|
|
19
19
|
### `validate`
|
|
20
20
|
|
|
21
|
-
Validate a configuration file against the Dime
|
|
21
|
+
Validate a configuration file against the Dime.Scheduler DSL schema.
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
24
|
dimescheduler-setup validate <file>
|
|
@@ -82,7 +82,7 @@ dimescheduler-setup compile my-profile.json5 --skip-validation
|
|
|
82
82
|
|
|
83
83
|
### `deploy`
|
|
84
84
|
|
|
85
|
-
Deploy a configuration directly to a Dime
|
|
85
|
+
Deploy a configuration directly to a Dime.Scheduler instance.
|
|
86
86
|
|
|
87
87
|
```bash
|
|
88
88
|
dimescheduler-setup deploy <file> --api-key <key> --env <environment> [options]
|
package/dist/index.js
CHANGED
|
@@ -625,7 +625,7 @@ async function deployToApi(payload, url, apiKey) {
|
|
|
625
625
|
return { success: false, message: "Request failed", error: String(err) };
|
|
626
626
|
}
|
|
627
627
|
}
|
|
628
|
-
var deployCommand = new Command3("deploy").description("Deploy a configuration to a Dime
|
|
628
|
+
var deployCommand = new Command3("deploy").description("Deploy a configuration to a Dime.Scheduler instance").argument("<file>", "Path to the configuration file (.json5 or .json)").requiredOption("--api-key <key>", "API key for authentication (or set DS_API_KEY env var)").requiredOption("--env <environment>", "Environment: production, sandbox, or test").option("--skip-validation", "Skip validation before deploying").option("--json", "Output results as JSON").option("--dry-run", "Validate and compile but do not deploy").option("-y, --yes", "Skip confirmation prompt").action(async (file, options) => {
|
|
629
629
|
try {
|
|
630
630
|
const filePath = resolve3(normalize3(file));
|
|
631
631
|
const content = readFileSync3(filePath, "utf-8");
|
|
@@ -725,7 +725,7 @@ var deployCommand = new Command3("deploy").description("Deploy a configuration t
|
|
|
725
725
|
|
|
726
726
|
// src/index.ts
|
|
727
727
|
var program = new Command4();
|
|
728
|
-
program.name("dimescheduler-setup").description("CLI tool to validate, compile, and deploy Dime
|
|
728
|
+
program.name("dimescheduler-setup").description("CLI tool to validate, compile, and deploy Dime.Scheduler configurations").version("0.1.0");
|
|
729
729
|
program.addCommand(validateCommand);
|
|
730
730
|
program.addCommand(compileCommand);
|
|
731
731
|
program.addCommand(deployCommand);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dimescheduler/setup",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "CLI tool to validate, compile, and deploy Dime
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "CLI tool to validate, compile, and deploy Dime.Scheduler configurations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"dimescheduler-setup": "./dist/index.js"
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"typecheck": "tsc --noEmit"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
+
"@dimescheduler/setup": "^0.1.0",
|
|
22
23
|
"commander": "^12.1.0",
|
|
23
24
|
"json5": "^2.2.3",
|
|
24
25
|
"picocolors": "^1.1.1"
|