mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 00:48:59 +02:00
Sort default context items categorically (#465)
* Sort default context items categorically * Separate commands in multiple statements * Use curly braces instead of square brackets This prevents undesired reformatting.
This commit is contained in:
@ -50,6 +50,7 @@ pub enum Category {
|
||||
System,
|
||||
Viewers,
|
||||
Hash,
|
||||
Generators,
|
||||
Custom(String),
|
||||
}
|
||||
|
||||
@ -74,6 +75,7 @@ impl std::fmt::Display for Category {
|
||||
Category::System => "system",
|
||||
Category::Viewers => "viewers",
|
||||
Category::Hash => "hash",
|
||||
Category::Generators => "generators",
|
||||
Category::Custom(name) => name,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user