mirror of
https://github.com/nushell/nushell.git
synced 2025-03-26 23:36:20 +01:00
Add non-functioning headers command
This commit is contained in:
parent
26602e437e
commit
c05511f6c1
@ -276,6 +276,7 @@ pub fn create_default_context(
|
||||
whole_stream_command(Autoview),
|
||||
whole_stream_command(Table),
|
||||
// Text manipulation
|
||||
whole_stream_command(Headers),
|
||||
whole_stream_command(SplitColumn),
|
||||
whole_stream_command(SplitRow),
|
||||
whole_stream_command(Lines),
|
||||
|
@ -25,6 +25,7 @@ pub(crate) mod edit;
|
||||
pub(crate) mod enter;
|
||||
#[allow(unused)]
|
||||
pub(crate) mod evaluate_by;
|
||||
pub(crate) mod headers;
|
||||
pub(crate) mod exit;
|
||||
pub(crate) mod first;
|
||||
pub(crate) mod format;
|
||||
@ -216,3 +217,4 @@ pub(crate) use what::What;
|
||||
pub(crate) use where_::Where;
|
||||
pub(crate) use which_::Which;
|
||||
pub(crate) use wrap::Wrap;
|
||||
pub(crate) use headers::Headers;
|
@ -6,6 +6,8 @@ use nu_errors::ShellError;
|
||||
use nu_protocol::{ReturnSuccess, Signature, UntaggedValue, Value};
|
||||
|
||||
pub struct Headers;
|
||||
#[derive(Deserialize)]
|
||||
pub struct HeadersArgs {}
|
||||
|
||||
impl WholeStreamCommand for Headers {
|
||||
fn name(&self) -> &str {
|
||||
@ -26,7 +28,7 @@ impl WholeStreamCommand for Headers {
|
||||
}
|
||||
}
|
||||
pub fn count(
|
||||
CountArgs {}: CountArgs,
|
||||
HeadersArgs {}: HeadersArgs,
|
||||
RunnableContext { input, name, .. }: RunnableContext,
|
||||
) -> Result<OutputStream, ShellError> {
|
||||
let stream = async_stream! {
|
||||
|
Loading…
Reference in New Issue
Block a user