[PR #266] [MERGED] Allow reading inputs from stdin #393

Closed
opened 2026-06-08 11:27:50 +03:00 by zhus · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/bootandy/dust/pull/266
Author: @cstyles
Created: 9/25/2022
Status: Merged
Merged: 10/1/2022
Merged by: @bootandy

Base: masterHead: stdin


📝 Commits (2)

  • 6ee099d Add a direct dependency on the atty crate
  • 69709e0 Read inputs from stdin when applicable

📊 Changes

4 files changed (+22 additions, -5 deletions)

View changed files

📝 Cargo.lock (+1 -0)
📝 Cargo.toml (+1 -0)
📝 src/cli.rs (+1 -1)
📝 src/main.rs (+19 -4)

📄 Description

Sometimes it's nice to run dust on a list of files/directories generated programmatically with something like fd or read from a file. This PR allows users to do just that:

$ fd ... | dust
$ dust < list_of_directories.txt

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/bootandy/dust/pull/266 **Author:** [@cstyles](https://github.com/cstyles) **Created:** 9/25/2022 **Status:** ✅ Merged **Merged:** 10/1/2022 **Merged by:** [@bootandy](https://github.com/bootandy) **Base:** `master` ← **Head:** `stdin` --- ### 📝 Commits (2) - [`6ee099d`](https://github.com/bootandy/dust/commit/6ee099d3104694238f0048cdfd6b580e93144e7e) Add a direct dependency on the `atty` crate - [`69709e0`](https://github.com/bootandy/dust/commit/69709e09051becdea94d1d48db3e703756f586ca) Read `inputs` from stdin when applicable ### 📊 Changes **4 files changed** (+22 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+1 -0) 📝 `Cargo.toml` (+1 -0) 📝 `src/cli.rs` (+1 -1) 📝 `src/main.rs` (+19 -4) </details> ### 📄 Description Sometimes it's nice to run `dust` on a list of files/directories generated programmatically with something like `fd` or read from a file. This PR allows users to do just that: ```shell $ fd ... | dust $ dust < list_of_directories.txt ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
zhus added the pull-request label 2026-06-08 11:27:50 +03:00
zhus closed this issue 2026-06-08 11:27:50 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#393