Skip to content

print pipeline contents in print - #8305

Merged
sophiajt merged 2 commits into
nushell:mainfrom
sophiajt:print_pipeline
Mar 3, 2023
Merged

sophiajt merged 2 commits into
nushell:mainfrom
sophiajt:print_pipeline

Conversation

@sophiajt

@sophiajt sophiajt commented Mar 3, 2023 •

Copy link
Copy Markdown
Contributor

Description

Have print print it's input, so it's easier to print a pipeline (esp after we land #8292 and related)

User-Facing Changes

print will now print its input, if there are no args given

Tests + Formatting

Don't forget to add tests that cover your changes.

Make sure you've run and fixed any issues with these commands:

  • cargo fmt --all -- --check to check standard code formatting (cargo fmt --all applies these changes)
  • cargo clippy --workspace -- -D warnings -D clippy::unwrap_used -A clippy::needless_collect to check that you're using the standard code style
  • cargo test --workspace to check that all tests pass

After Submitting

If your PR had any user-facing changes, update the documentation after the PR is merged, if necessary. This will help us keep the docs up to date.

@codecov

codecov Bot commented Mar 3, 2023

Copy link
Copy Markdown

Codecov Report

Merging #8305 (217a35f) into main (e01eb42) will increase coverage by 0.38%.
The diff coverage is 75.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #8305      +/-   ##
==========================================
+ Coverage   68.16%   68.54%   +0.38%     
==========================================
  Files         620      620              
  Lines       99288    99294       +6     
==========================================
+ Hits        67681    68063     +382     
+ Misses      31607    31231     -376     
Impacted Files Coverage Δ
crates/nu-cli/src/print.rs 95.23% <75.00%> (-4.77%) ⬇️
crates/nu-parser/src/parser.rs 82.59% <0.00%> (+0.09%) ⬆️
crates/nu-protocol/src/ty.rs 87.14% <0.00%> (+0.71%) ⬆️
crates/nu-color-config/src/nu_style.rs 80.22% <0.00%> (+70.91%) ⬆️

@sophiajt
sophiajt merged commit 6148314 into nushell:main Mar 3, 2023
@sophiajt
sophiajt deleted the print_pipeline branch March 4, 2023 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant