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.
36 lines
1.2 KiB
Rust
36 lines
1.2 KiB
Rust
#[macro_use]
|
|
mod macros;
|
|
|
|
mod call_info;
|
|
pub mod config_path;
|
|
pub mod hir;
|
|
mod maybe_owned;
|
|
mod registry;
|
|
mod return_value;
|
|
mod signature;
|
|
mod syntax_shape;
|
|
mod type_name;
|
|
mod type_shape;
|
|
pub mod value;
|
|
|
|
#[cfg(feature = "dataframe")]
|
|
pub mod dataframe;
|
|
|
|
pub use crate::call_info::{CallInfo, EvaluatedArgs};
|
|
pub use crate::config_path::ConfigPath;
|
|
pub use crate::maybe_owned::MaybeOwned;
|
|
pub use crate::registry::{SignatureRegistry, VariableRegistry};
|
|
pub use crate::return_value::{CommandAction, ReturnSuccess, ReturnValue};
|
|
pub use crate::signature::{NamedType, PositionalType, Signature};
|
|
pub use crate::syntax_shape::SyntaxShape;
|
|
pub use crate::type_name::{PrettyType, ShellTypeName, SpannedTypeName};
|
|
pub use crate::type_shape::{Row as RowType, Type};
|
|
pub use crate::value::column_path::{ColumnPath, PathMember, UnspannedPathMember};
|
|
pub use crate::value::dict::{Dictionary, TaggedDictBuilder};
|
|
pub use crate::value::did_you_mean::did_you_mean;
|
|
pub use crate::value::primitive::Primitive;
|
|
pub use crate::value::primitive::{format_date, format_duration, format_primitive};
|
|
pub use crate::value::range::{Range, RangeInclusion};
|
|
pub use crate::value::value_structure::{ValueResource, ValueStructure};
|
|
pub use crate::value::{merge_descriptors, UntaggedValue, Value};
|