From f2fa433cd88914ee75d2fe0bda274a4981264160 Mon Sep 17 00:00:00 2001 From: jiyinyiyong Date: Thu, 13 May 2021 15:18:45 +0800 Subject: [PATCH] shorten command alias back to cr; bump 0.3.14 --- Cargo.lock | 2 +- Cargo.toml | 4 ++-- README.md | 16 ++++++++-------- package.json | 2 +- scripts/cp-version.js | 5 +++-- 5 files changed, 15 insertions(+), 14 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8e1b4aa5..d4bd1e10 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -81,7 +81,7 @@ dependencies = [ [[package]] name = "calcit_runner" -version = "0.3.13" +version = "0.3.14" dependencies = [ "chrono", "cirru_edn", diff --git a/Cargo.toml b/Cargo.toml index 05e39ab1..9ad696aa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "calcit_runner" -version = "0.3.13" +version = "0.3.14" authors = ["jiyinyiyong "] edition = "2018" license = "MIT" @@ -39,5 +39,5 @@ name = "calcit_runner" path = "src/lib.rs" [[bin]] -name = "calcit_runner" +name = "cr" path = "src/main.rs" diff --git a/README.md b/README.md index 89685ade..e43ed271 100644 --- a/README.md +++ b/README.md @@ -37,21 +37,21 @@ cargo run calcit/compact.cirru # evaluate -calcit_runner compact.cirru --once # run only once -calcit_runner compact.cirru # watch mode enabled by default +cr compact.cirru --once # run only once +cr compact.cirru # watch mode enabled by default -calcit_runner compact.cirru --init-fn='app.main/main!' # specifying init-fn +cr compact.cirru --init-fn='app.main/main!' # specifying init-fn -calcit_runner -e="range 100" # eval from CLI +cr -e="range 100" # eval from CLI # emit code -calcit_runner compact.cirru --emit-js # compile to js -calcit_runner compact.cirru --emit-js --emit-path=out/ # compile to js and save in `out/` +cr compact.cirru --emit-js # compile to js +cr compact.cirru --emit-js --emit-path=out/ # compile to js and save in `out/` -calcit_runner compact.cirru --emit-ir # compiles intermediate representation into program-ir.json +cr compact.cirru --emit-ir # compiles intermediate representation into program-ir.json -calcit_runner compact.cirru --emit-js --mjs # TODO compile to mjs +cr compact.cirru --emit-js --mjs # TODO compile to mjs ``` For linux users, download pre-built binaries from http://bin.calcit-lang.org/linux/ . diff --git a/package.json b/package.json index f44a364d..398ecace 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@calcit/procs", - "version": "0.3.13", + "version": "0.3.14", "main": "./lib/calcit.procs.js", "devDependencies": { "@types/node": "^15.0.1", diff --git a/scripts/cp-version.js b/scripts/cp-version.js index a39f29c8..7613f454 100644 --- a/scripts/cp-version.js +++ b/scripts/cp-version.js @@ -4,5 +4,6 @@ let pkg = require("../package.json"); if (!fs.existsSync("builds")) { fs.mkdirSync("builds/"); } -fs.copyFileSync("target/release/calcit_runner", "builds/calcit_runner"); -fs.copyFileSync("builds/calcit_runner", `builds/calcit_runner_${pkg.version}`); +fs.copyFileSync("target/release/cr", "builds/cr"); +fs.copyFileSync("builds/cr", "builds/calcit_runner"); +fs.copyFileSync("builds/cr", `builds/cr_${pkg.version}`);