mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 18:34:31 +02:00
nu-cli: directory syntax shape + completions (#5299)
This commit is contained in:
@ -33,6 +33,7 @@ pub enum Expr {
|
||||
ValueWithUnit(Box<Expression>, Spanned<Unit>),
|
||||
DateTime(chrono::DateTime<FixedOffset>),
|
||||
Filepath(String),
|
||||
Directory(String),
|
||||
GlobPattern(String),
|
||||
String(String),
|
||||
CellPath(CellPath),
|
||||
|
@ -162,6 +162,7 @@ impl Expression {
|
||||
}
|
||||
Expr::ImportPattern(_) => false,
|
||||
Expr::Filepath(_) => false,
|
||||
Expr::Directory(_) => false,
|
||||
Expr::Float(_) => false,
|
||||
Expr::FullCellPath(full_cell_path) => {
|
||||
if full_cell_path.head.has_in_variable(working_set) {
|
||||
@ -320,6 +321,7 @@ impl Expression {
|
||||
}
|
||||
}
|
||||
Expr::Filepath(_) => {}
|
||||
Expr::Directory(_) => {}
|
||||
Expr::Float(_) => {}
|
||||
Expr::FullCellPath(full_cell_path) => {
|
||||
full_cell_path
|
||||
@ -467,6 +469,7 @@ impl Expression {
|
||||
}
|
||||
}
|
||||
Expr::Filepath(_) => {}
|
||||
Expr::Directory(_) => {}
|
||||
Expr::Float(_) => {}
|
||||
Expr::FullCellPath(full_cell_path) => {
|
||||
full_cell_path
|
||||
|
Reference in New Issue
Block a user