File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 99
1010## setup
1111
12- 1 . install latest topiary-cli
12+ 1 . install topiary-cli (0.5.1 above)
13132 . clone this repo to ` $env.XDG_CONFIG_HOME/topiary `
14143 . set environment variables
1515``` nu
1616$env.TOPIARY_CONFIG_FILE = ($env.XDG_CONFIG_HOME | path join topiary languages.ncl)
1717$env.TOPIARY_LANGUAGE_DIR = ($env.XDG_CONFIG_HOME | path join topiary languages)
1818```
19+ 4 . update ` languages.ncl ` if Nickel error detected: ` grammar.source.git ` fits recent updates of topiary github
20+ while the latest release of topiary-cli still uses the other way.
21+
22+ ``` diff
23+ < grammar = {
24+ ---
25+ > grammar.source.git = {
26+ ```
1927
2028## usage
2129
2230` topiary format script.nu `
31+
32+ ## contribute
33+
34+ Help to find format issues with following method (dry-run, detects parsing/idempotence/semantic breaking):
35+
36+ ``` nu
37+ source utils.nu
38+ test_format <root-path-of-your-nushell-scripts>
39+ ```
Original file line number Diff line number Diff line change @@ -30,5 +30,6 @@ export def test_format [
3030 break
3131 }
3232 }
33+ rm $target
3334 }
3435}
You can’t perform that action at this time.
0 commit comments