mirror of
https://github.com/nushell/nushell.git
synced 2025-04-02 12:19:48 +02: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(Autoview),
|
||||||
whole_stream_command(Table),
|
whole_stream_command(Table),
|
||||||
// Text manipulation
|
// Text manipulation
|
||||||
|
whole_stream_command(Headers),
|
||||||
whole_stream_command(SplitColumn),
|
whole_stream_command(SplitColumn),
|
||||||
whole_stream_command(SplitRow),
|
whole_stream_command(SplitRow),
|
||||||
whole_stream_command(Lines),
|
whole_stream_command(Lines),
|
||||||
|
@ -25,6 +25,7 @@ pub(crate) mod edit;
|
|||||||
pub(crate) mod enter;
|
pub(crate) mod enter;
|
||||||
#[allow(unused)]
|
#[allow(unused)]
|
||||||
pub(crate) mod evaluate_by;
|
pub(crate) mod evaluate_by;
|
||||||
|
pub(crate) mod headers;
|
||||||
pub(crate) mod exit;
|
pub(crate) mod exit;
|
||||||
pub(crate) mod first;
|
pub(crate) mod first;
|
||||||
pub(crate) mod format;
|
pub(crate) mod format;
|
||||||
@ -216,3 +217,4 @@ pub(crate) use what::What;
|
|||||||
pub(crate) use where_::Where;
|
pub(crate) use where_::Where;
|
||||||
pub(crate) use which_::Which;
|
pub(crate) use which_::Which;
|
||||||
pub(crate) use wrap::Wrap;
|
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};
|
use nu_protocol::{ReturnSuccess, Signature, UntaggedValue, Value};
|
||||||
|
|
||||||
pub struct Headers;
|
pub struct Headers;
|
||||||
|
#[derive(Deserialize)]
|
||||||
|
pub struct HeadersArgs {}
|
||||||
|
|
||||||
impl WholeStreamCommand for Headers {
|
impl WholeStreamCommand for Headers {
|
||||||
fn name(&self) -> &str {
|
fn name(&self) -> &str {
|
||||||
@ -26,7 +28,7 @@ impl WholeStreamCommand for Headers {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
pub fn count(
|
pub fn count(
|
||||||
CountArgs {}: CountArgs,
|
HeadersArgs {}: HeadersArgs,
|
||||||
RunnableContext { input, name, .. }: RunnableContext,
|
RunnableContext { input, name, .. }: RunnableContext,
|
||||||
) -> Result<OutputStream, ShellError> {
|
) -> Result<OutputStream, ShellError> {
|
||||||
let stream = async_stream! {
|
let stream = async_stream! {
|
||||||
|
Loading…
Reference in New Issue
Block a user