File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed
Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -30,5 +30,5 @@ automatically parses its output into a structured data format.
3030
31312 . Source this module in your ` config.nu ` :
3232 ``` nu
33- source ~/path/to/jc/mod.rs
33+ use modules/jc
3434 ```
Original file line number Diff line number Diff line change 11def --env "nu-complete jc" [] {
2- if $env .__NU_COMPLETE_JC ? != null {
3- return $env .__NU_COMPLETE_JC
4- }
5-
6- let options = try {
2+ try {
73 let about = ^ jc -- about
84 | from json
95
@@ -38,14 +34,10 @@ def --env "nu-complete jc" [] {
3834 } catch {
3935 []
4036 }
41-
42- $env .__NU_COMPLETE_JC = $options
43-
44- $options
4537}
4638
4739# Run `jc` (JSON Converter).
48- export def --wrapped jc [... arguments : string @" nu-complete jc" ]: [any - > table , any - > record , any - > string ] {
40+ export def --wrapped main [... arguments : string @" nu-complete jc" ]: [any - > table , any - > record , any - > string ] {
4941 let run = ^ jc ... $arguments | complete
5042
5143 if $run.exit_code != 0 {
You can’t perform that action at this time.
0 commit comments