forked from extern/nushell
03c9eaf005
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.
40 lines
1.4 KiB
Rust
40 lines
1.4 KiB
Rust
mod call_info;
|
|
mod command_args;
|
|
mod config_holder;
|
|
pub mod documentation;
|
|
mod env;
|
|
mod evaluate;
|
|
pub mod evaluation_context;
|
|
mod example;
|
|
pub mod filesystem;
|
|
mod from_value;
|
|
mod maybe_text_codec;
|
|
pub mod plugin;
|
|
mod print;
|
|
pub mod script;
|
|
pub mod shell;
|
|
mod types;
|
|
mod whole_stream_command;
|
|
|
|
pub use crate::call_info::UnevaluatedCallInfo;
|
|
pub use crate::command_args::{CommandArgs, RunnableContext};
|
|
pub use crate::config_holder::ConfigHolder;
|
|
pub use crate::documentation::{generate_docs, get_brief_help, get_documentation, get_full_help};
|
|
pub use crate::env::host::FakeHost;
|
|
pub use crate::env::host::Host;
|
|
pub use crate::evaluate::block::run_block;
|
|
pub use crate::evaluate::scope::Scope;
|
|
pub use crate::evaluate::{evaluator, evaluator::evaluate_baseline_expr};
|
|
pub use crate::evaluation_context::EvaluationContext;
|
|
pub use crate::example::Example;
|
|
pub use crate::filesystem::dir_info::{DirBuilder, DirInfo, FileInfo};
|
|
pub use crate::filesystem::filesystem_shell::FilesystemShell;
|
|
pub use crate::from_value::FromValue;
|
|
pub use crate::maybe_text_codec::{BufCodecReader, MaybeTextCodec, StringOrBinary};
|
|
pub use crate::print::maybe_print_errors;
|
|
pub use crate::shell::painter::Painter;
|
|
pub use crate::shell::palette::{DefaultPalette, Palette};
|
|
pub use crate::shell::shell_manager::ShellManager;
|
|
pub use crate::shell::value_shell;
|
|
pub use crate::whole_stream_command::{whole_stream_command, Command, WholeStreamCommand};
|