mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 22:50:14 +02:00
add missing shapes to default_config (#7472)
# Description We've added some shapes recently. This PR adds them to the default_config and sorts them in order to make finding missing ones easier. # User-Facing Changes # Tests + Formatting Don't forget to add tests that cover your changes. Make sure you've run and fixed any issues with these commands: - `cargo fmt --all -- --check` to check standard code formatting (`cargo fmt --all` applies these changes) - `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used -A clippy::needless_collect` to check that you're using the standard code style - `cargo test --workspace` to check that all tests pass # After Submitting If your PR had any user-facing changes, update [the documentation](https://github.com/nushell/nushell.github.io) after the PR is merged, if necessary. This will help us keep the docs up to date.
This commit is contained in:
@ -7,71 +7,71 @@ use std::fmt::{Display, Formatter, Result};
|
||||
|
||||
#[derive(Debug, Eq, PartialEq, Ord, Clone, PartialOrd)]
|
||||
pub enum FlatShape {
|
||||
Garbage,
|
||||
Nothing,
|
||||
Bool,
|
||||
And,
|
||||
Binary,
|
||||
Int,
|
||||
Float,
|
||||
Range,
|
||||
InternalCall,
|
||||
Block,
|
||||
Bool,
|
||||
Custom(DeclId),
|
||||
DateTime,
|
||||
Directory,
|
||||
External,
|
||||
ExternalArg,
|
||||
Filepath,
|
||||
Flag,
|
||||
Float,
|
||||
Garbage,
|
||||
GlobPattern,
|
||||
Int,
|
||||
InternalCall,
|
||||
List,
|
||||
Literal,
|
||||
Nothing,
|
||||
Operator,
|
||||
Or,
|
||||
Pipe,
|
||||
Range,
|
||||
Record,
|
||||
Redirection,
|
||||
Signature,
|
||||
String,
|
||||
StringInterpolation,
|
||||
List,
|
||||
Table,
|
||||
Record,
|
||||
Block,
|
||||
Filepath,
|
||||
Directory,
|
||||
DateTime,
|
||||
GlobPattern,
|
||||
Variable,
|
||||
Flag,
|
||||
Pipe,
|
||||
And,
|
||||
Or,
|
||||
Redirection,
|
||||
Custom(DeclId),
|
||||
}
|
||||
|
||||
impl Display for FlatShape {
|
||||
fn fmt(&self, f: &mut Formatter) -> Result {
|
||||
match self {
|
||||
FlatShape::Garbage => write!(f, "shape_garbage"),
|
||||
FlatShape::Nothing => write!(f, "shape_nothing"),
|
||||
FlatShape::And => write!(f, "shape_and"),
|
||||
FlatShape::Binary => write!(f, "shape_binary"),
|
||||
FlatShape::Block => write!(f, "shape_block"),
|
||||
FlatShape::Bool => write!(f, "shape_bool"),
|
||||
FlatShape::Int => write!(f, "shape_int"),
|
||||
FlatShape::Float => write!(f, "shape_float"),
|
||||
FlatShape::Range => write!(f, "shape_range"),
|
||||
FlatShape::InternalCall => write!(f, "shape_internalcall"),
|
||||
FlatShape::Custom(_) => write!(f, "shape_custom"),
|
||||
FlatShape::DateTime => write!(f, "shape_datetime"),
|
||||
FlatShape::Directory => write!(f, "shape_directory"),
|
||||
FlatShape::External => write!(f, "shape_external"),
|
||||
FlatShape::ExternalArg => write!(f, "shape_externalarg"),
|
||||
FlatShape::Filepath => write!(f, "shape_filepath"),
|
||||
FlatShape::Flag => write!(f, "shape_flag"),
|
||||
FlatShape::Float => write!(f, "shape_float"),
|
||||
FlatShape::Garbage => write!(f, "shape_garbage"),
|
||||
FlatShape::GlobPattern => write!(f, "shape_globpattern"),
|
||||
FlatShape::Int => write!(f, "shape_int"),
|
||||
FlatShape::InternalCall => write!(f, "shape_internalcall"),
|
||||
FlatShape::List => write!(f, "shape_list"),
|
||||
FlatShape::Literal => write!(f, "shape_literal"),
|
||||
FlatShape::Nothing => write!(f, "shape_nothing"),
|
||||
FlatShape::Operator => write!(f, "shape_operator"),
|
||||
FlatShape::Or => write!(f, "shape_or"),
|
||||
FlatShape::Pipe => write!(f, "shape_pipe"),
|
||||
FlatShape::Range => write!(f, "shape_range"),
|
||||
FlatShape::Record => write!(f, "shape_record"),
|
||||
FlatShape::Redirection => write!(f, "shape_redirection"),
|
||||
FlatShape::Signature => write!(f, "shape_signature"),
|
||||
FlatShape::String => write!(f, "shape_string"),
|
||||
FlatShape::DateTime => write!(f, "shape_datetime"),
|
||||
FlatShape::StringInterpolation => write!(f, "shape_string_interpolation"),
|
||||
FlatShape::List => write!(f, "shape_list"),
|
||||
FlatShape::Table => write!(f, "shape_table"),
|
||||
FlatShape::Record => write!(f, "shape_record"),
|
||||
FlatShape::Block => write!(f, "shape_block"),
|
||||
FlatShape::Filepath => write!(f, "shape_filepath"),
|
||||
FlatShape::Directory => write!(f, "shape_directory"),
|
||||
FlatShape::GlobPattern => write!(f, "shape_globpattern"),
|
||||
FlatShape::Variable => write!(f, "shape_variable"),
|
||||
FlatShape::Flag => write!(f, "shape_flag"),
|
||||
FlatShape::Pipe => write!(f, "shape_pipe"),
|
||||
FlatShape::And => write!(f, "shape_and"),
|
||||
FlatShape::Or => write!(f, "shape_or"),
|
||||
FlatShape::Redirection => write!(f, "shape_redirection"),
|
||||
FlatShape::Custom(_) => write!(f, "shape_custom"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user