Skip to content

Commit

Permalink
shorten command alias back to cr; bump 0.3.14
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed May 13, 2021
1 parent 6b99d93 commit f2fa433
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "calcit_runner"
version = "0.3.13"
version = "0.3.14"
authors = ["jiyinyiyong <jiyinyiyong@gmail.com>"]
edition = "2018"
license = "MIT"
Expand Down Expand Up @@ -39,5 +39,5 @@ name = "calcit_runner"
path = "src/lib.rs"

[[bin]]
name = "calcit_runner"
name = "cr"
path = "src/main.rs"
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/ .
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 3 additions & 2 deletions scripts/cp-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);

0 comments on commit f2fa433

Please sign in to comment.