@onkernel/cli 0.0.1-alpha.2 → 0.0.2
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/index.js +2 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -74,10 +74,7 @@ program.command("deploy").description("Deploy a Kernel application").argument("<
|
|
|
74
74
|
console.error("Please set your Kernel API key using: export KERNEL_API_KEY=your_api_key");
|
|
75
75
|
process.exit(1);
|
|
76
76
|
}
|
|
77
|
-
const client = new Kernel(
|
|
78
|
-
apiKey: process.env["KERNEL_API_KEY"],
|
|
79
|
-
baseURL: process.env["KERNEL_BASE_URL"] || "http://localhost:3001"
|
|
80
|
-
});
|
|
77
|
+
const client = new Kernel();
|
|
81
78
|
console.log(chalk.green(`Compressing files...`));
|
|
82
79
|
const tmpZipFile = tmp.fileSync({ postfix: ".zip" });
|
|
83
80
|
try {
|
|
@@ -132,10 +129,7 @@ program.command("invoke").description("Invoke a deployed Kernel application").op
|
|
|
132
129
|
console.error("Please set your Kernel API key using: export KERNEL_API_KEY=your_api_key");
|
|
133
130
|
process.exit(1);
|
|
134
131
|
}
|
|
135
|
-
const client = new Kernel(
|
|
136
|
-
apiKey: process.env["KERNEL_API_KEY"],
|
|
137
|
-
baseURL: process.env["KERNEL_BASE_URL"] || "http://localhost:3001"
|
|
138
|
-
});
|
|
132
|
+
const client = new Kernel();
|
|
139
133
|
console.log(`Invoking "${appName}" with action "${actionName}" and payload:`);
|
|
140
134
|
console.log(JSON.stringify(parsedPayload, null, 2));
|
|
141
135
|
try {
|