@backtest-kit/cli 6.1.2 → 6.1.3
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/build/index.cjs +15 -0
- package/build/index.mjs +15 -0
- package/package.json +1 -1
- package/template/project/package.mustache +1 -1
package/build/index.cjs
CHANGED
|
@@ -2215,6 +2215,21 @@ const cli = {
|
|
|
2215
2215
|
};
|
|
2216
2216
|
init();
|
|
2217
2217
|
|
|
2218
|
+
const MODES = ["backtest", "paper", "live", "pine", "dump", "init", "help", "version"];
|
|
2219
|
+
const main$a = async () => {
|
|
2220
|
+
if (!getEntry((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)))) {
|
|
2221
|
+
return;
|
|
2222
|
+
}
|
|
2223
|
+
const { values } = getArgs();
|
|
2224
|
+
if (MODES.some((mode) => values[mode])) {
|
|
2225
|
+
return;
|
|
2226
|
+
}
|
|
2227
|
+
process.stdout.write(`@backtest-kit/cli ${"6.1.1"}\n`);
|
|
2228
|
+
process.stdout.write(`Run with --help to see available commands.\n`);
|
|
2229
|
+
process.exit(0);
|
|
2230
|
+
};
|
|
2231
|
+
main$a();
|
|
2232
|
+
|
|
2218
2233
|
const notifyShutdown = functoolsKit.singleshot(async () => {
|
|
2219
2234
|
console.log("Graceful shutdown initiated. Press Ctrl+C again to force quit.");
|
|
2220
2235
|
});
|
package/build/index.mjs
CHANGED
|
@@ -2186,6 +2186,21 @@ const cli = {
|
|
|
2186
2186
|
};
|
|
2187
2187
|
init();
|
|
2188
2188
|
|
|
2189
|
+
const MODES = ["backtest", "paper", "live", "pine", "dump", "init", "help", "version"];
|
|
2190
|
+
const main$a = async () => {
|
|
2191
|
+
if (!getEntry(import.meta.url)) {
|
|
2192
|
+
return;
|
|
2193
|
+
}
|
|
2194
|
+
const { values } = getArgs();
|
|
2195
|
+
if (MODES.some((mode) => values[mode])) {
|
|
2196
|
+
return;
|
|
2197
|
+
}
|
|
2198
|
+
process.stdout.write(`@backtest-kit/cli ${"6.1.1"}\n`);
|
|
2199
|
+
process.stdout.write(`Run with --help to see available commands.\n`);
|
|
2200
|
+
process.exit(0);
|
|
2201
|
+
};
|
|
2202
|
+
main$a();
|
|
2203
|
+
|
|
2189
2204
|
const notifyShutdown = singleshot(async () => {
|
|
2190
2205
|
console.log("Graceful shutdown initiated. Press Ctrl+C again to force quit.");
|
|
2191
2206
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backtest-kit/cli",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.3",
|
|
4
4
|
"description": "Zero-boilerplate CLI runner for backtest-kit strategies. Run backtests, paper trading, and live bots with candle cache warming, web dashboard, and Telegram notifications — no setup code required.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Petr Tripolsky",
|