2
0
Fork 0
mirror of https://github.com/nushell/nushell synced 2025-02-21 00:18:35 +00:00
nushell/crates/nu-cli
Jason Gedge 9f85b10fcb
Add method to convert ClassifiedBlock into completion locations. ()
The completion engine maps completion locations to spans on a line, which
indicate whther to complete a command name, flag name, argument, and so on.

Initial implementation is simplistic, with some rough edges, since it relies
heavily on the parser's interpretation. For example

    du -

if asking for completions, `-` is considered a positional argument by the
parser, but the user is likely looking for a flag. These scenarios will be
addressed in a series of progressive enhancements to the engine.
2020-08-21 15:37:51 -04:00
..
assets moved theme assets local to crate () 2020-08-11 13:57:03 -05:00
src Add method to convert ClassifiedBlock into completion locations. () 2020-08-21 15:37:51 -04:00
tests SyntaxShape checking in Alias () 2020-08-20 15:18:55 +12:00
build.rs Add wasm sample for CI () 2020-08-19 07:34:05 +12:00
Cargo.toml Add wasm sample for CI () 2020-08-19 07:34:05 +12:00