Category option for signature (#343)

* category option for signature

* category option for signature

* column description for $scope
This commit is contained in:
Fernando Herrera
2021-11-17 04:22:37 +00:00
committed by GitHub
parent 6fbe02eb21
commit b35914bd17
118 changed files with 739 additions and 335 deletions

View File

@ -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 {

View File

@ -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(