mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 10:18:30 +02:00
Category option for signature (#343)
* category option for signature * category option for signature * column description for $scope
This commit is contained in:
@ -3,7 +3,7 @@ use nu_engine::CallExt;
|
||||
use nu_protocol::{
|
||||
ast::{Call, PathMember},
|
||||
engine::{Command, EngineState, Stack},
|
||||
Config, IntoPipelineData, PipelineData, Signature, Span, SyntaxShape, Value,
|
||||
Category, Config, IntoPipelineData, PipelineData, Signature, Span, SyntaxShape, Value,
|
||||
};
|
||||
use nu_term_grid::grid::{Alignment, Cell, Direction, Filling, Grid, GridOptions};
|
||||
use terminal_size::{Height, Width};
|
||||
@ -35,6 +35,7 @@ impl Command for Griddle {
|
||||
"character to separate grid with",
|
||||
Some('s'),
|
||||
)
|
||||
.category(Category::Viewers)
|
||||
}
|
||||
|
||||
fn extra_usage(&self) -> &str {
|
||||
|
@ -1,6 +1,8 @@
|
||||
use nu_protocol::ast::{Call, PathMember};
|
||||
use nu_protocol::engine::{Command, EngineState, Stack};
|
||||
use nu_protocol::{Config, IntoPipelineData, PipelineData, ShellError, Signature, Span, Value};
|
||||
use nu_protocol::{
|
||||
Category, Config, IntoPipelineData, PipelineData, ShellError, Signature, Span, Value,
|
||||
};
|
||||
use nu_table::{StyledString, Theme};
|
||||
use std::collections::HashMap;
|
||||
use std::sync::atomic::{AtomicBool, Ordering};
|
||||
@ -21,7 +23,7 @@ impl Command for Table {
|
||||
}
|
||||
|
||||
fn signature(&self) -> nu_protocol::Signature {
|
||||
Signature::build("table")
|
||||
Signature::build("table").category(Category::Viewers)
|
||||
}
|
||||
|
||||
fn run(
|
||||
|
Reference in New Issue
Block a user