pinets-cli 0.1.1 → 0.1.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/pinets-cli.dev.cjs
CHANGED
|
@@ -4702,12 +4702,42 @@ async function checkForUpdate(currentVersion, packageName) {
|
|
|
4702
4702
|
}
|
|
4703
4703
|
}
|
|
4704
4704
|
|
|
4705
|
-
|
|
4706
|
-
|
|
4705
|
+
var name = "pinets-cli";
|
|
4706
|
+
var version = "0.1.1";
|
|
4707
|
+
var packageJson = {
|
|
4708
|
+
name: name,
|
|
4709
|
+
version: version};
|
|
4710
|
+
|
|
4711
|
+
const VERSION = packageJson.version;
|
|
4712
|
+
const PACKAGE_NAME = packageJson.name;
|
|
4713
|
+
const COPYRIGHT = "Copyright (c) 2026 QuantForge.org";
|
|
4714
|
+
const VERSION_TEXT = `pinets cli v${VERSION}
|
|
4715
|
+
${COPYRIGHT}`;
|
|
4707
4716
|
async function main() {
|
|
4708
4717
|
const updateCheck = checkForUpdate(VERSION, PACKAGE_NAME);
|
|
4709
|
-
program.name("pinets").description("CLI for running Pine Script indicators via PineTS").version(
|
|
4710
|
-
|
|
4718
|
+
program.name("pinets").description("CLI for running Pine Script indicators via PineTS").version(VERSION_TEXT, "-v, --version").addHelpText("after", `
|
|
4719
|
+
${VERSION_TEXT}`);
|
|
4720
|
+
program.command("run").description("Execute a Pine Script indicator").argument("[file]", "Path to indicator file (.pine or any text file)").option(
|
|
4721
|
+
"-s, --symbol <ticker>",
|
|
4722
|
+
"Symbol to query (e.g., BTCUSDT, ETHUSDT.P)"
|
|
4723
|
+
).option(
|
|
4724
|
+
"-t, --timeframe <tf>",
|
|
4725
|
+
"Timeframe: 1, 5, 15, 60, 240, 1D, 1W, 1M",
|
|
4726
|
+
"60"
|
|
4727
|
+
).option(
|
|
4728
|
+
"-d, --data <path>",
|
|
4729
|
+
"Path to JSON data file (alternative to --symbol)"
|
|
4730
|
+
).option("-o, --output <path>", "Write output to file (default: stdout)").option("-f, --format <type>", "Output format: default | full", "default").option("--pretty", "Pretty-print JSON output").option(
|
|
4731
|
+
"--clean",
|
|
4732
|
+
"Filter out null, false, and empty values from plot data"
|
|
4733
|
+
).option(
|
|
4734
|
+
"--plots <names>",
|
|
4735
|
+
'Comma-separated list of plot names to include, e.g. --plots "Buy,Sell"'
|
|
4736
|
+
).option("-n, --candles <count>", "Number of output candles", "500").option(
|
|
4737
|
+
"-w, --warmup <count>",
|
|
4738
|
+
"Extra warmup candles for indicator init",
|
|
4739
|
+
"0"
|
|
4740
|
+
).option("--debug", "Show transpiled code").option("-q, --quiet", "Suppress informational messages").action(runCommand);
|
|
4711
4741
|
await program.parseAsync();
|
|
4712
4742
|
const notice = await Promise.race([
|
|
4713
4743
|
updateCheck,
|