nushell/crates/nu-cli
Andrés N. Robalino 03c9eaf005
Variable completions. (#3666)
In Nu we have variables (E.g. $var-name) and these contain `Value` types.
This means we can bind to variables any structured data and column path syntax
(E.g. `$variable.path.to`) allows flexibility for "querying" said structures.

Here we offer completions for these. For example, in a Nushell session the
variable `$nu` contains environment values among other things. If we wanted to
see in the screen some environment variable (say the var `SHELL`) we do:

```
> echo $nu.env.SHELL
```

with completions we can now do: `echo $nu.env.S[\TAB]` and we get suggestions
that start at the column path `$nu.env` with vars starting with the letter `S`
in this case `SHELL` appears in the suggestions.
2021-06-23 19:21:39 +12:00
..
assets moved theme assets local to crate (#2329) 2020-08-11 13:57:03 -05:00
src Variable completions. (#3666) 2021-06-23 19:21:39 +12:00
build.rs update to shadow-rs 0.5. make use easy (#2793) 2020-12-24 05:56:05 +13:00
Cargo.toml Bump to 0.33 (#3667) 2021-06-22 17:22:33 +12:00
README.md Update README.md 2021-06-19 12:08:44 +12:00

nu-cli

This crate provides the fundamental needs when creating the Nushell interactive REPL. In it, you'll find features for interacting with the line editor (the piece which writes the prompt and takes input from the user), keybindings, handlers for the commandline arguments passed to the REPL as it starts up, and more.