Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

Porting echo command #271

Merged
merged 3 commits into from
Nov 1, 2021
Merged

Porting echo command #271

merged 3 commits into from
Nov 1, 2021

Conversation

aslynatilla
Copy link

Implementation of command echo, assigned in #242.
I also ran cargo clippy --all, so that I was sure I didn't introduce unnecessary warnings.

I'll be waiting for feedback, before going on with format.

_call: &Call,
input: PipelineData,
) -> Result<PipelineData, ShellError> {
Ok(input)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies, looks like I misspoke a little. The arguments from the rest argument are what should be turned into the output.

Copy link
Author

@aslynatilla aslynatilla Nov 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem!
I'll deal with it in some minutes! Thanks for the feedback!

EDIT: sorry for being late, it took me more time than I originally intended.

Values to echo need to be extracted from the call, and then converted
into PipelineData.

I also updated the first example so that its result is a List,
as in the reference implementation.
@sophiajt
Copy link
Contributor

sophiajt commented Nov 1, 2021

thanks!

@sophiajt sophiajt merged commit e14945f into nushell:main Nov 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants