Skip to content

Implement --noheadings for lsns#569

Open
vbmade2000 wants to merge 3 commits into
uutils:mainfrom
vbmade2000:lsns-noheadings
Open

Implement --noheadings for lsns#569
vbmade2000 wants to merge 3 commits into
uutils:mainfrom
vbmade2000:lsns-noheadings

Conversation

@vbmade2000

Copy link
Copy Markdown
Contributor

Closes #567

Signed-off-by: Malhar Vora <mlvora.2010@gmail.com>
Signed-off-by: Malhar Vora <mlvora.2010@gmail.com>
@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (eae208f) to head (377ae44).
⚠️ Report is 74 commits behind head on main.

Additional details and impacted files
@@     Coverage Diff     @@
##   main   #569   +/-   ##
===========================
===========================

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Alonely0 Alonely0 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looks great; just a nitpick from my end.

Comment thread src/uu/lsns/src/lsns.rs
read_namespaces(&mut lsns)?;

display_namespaces(&lsns)?;
display_namespaces(&lsns, noheadings)?;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I would move this flag into the Lsns struct, like all the other ones. This allows for reproducible behavior of the util through that struct alone, as well as preventing function args from getting out of hand. Should also make the diff smaller.

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.

Implement --noheadings for lsns

2 participants