Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

1.2: Feature Request: Sample-Program which reads and writes to stdin resp. stdout

Open
#36 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
cli, documentation

Research direction

Start by locating the book's existing CLI examples and determine where a sample program belongs. Implement the documented sample-program --output <optional-output-file> <optional-input-file> behavior, using stdin and stdout when the respective paths are omitted, and verify the example's usage and I/O behavior.

Written by the indexing model from the issue text.

Description

It would be great to have an example cli-program with usage:

sample-program --output
if --output is missing, output will be written to stdout; if input-file is missing, input is read from stdin.

Thanks.

Dominant language
Rust
Stars
1.1k
Forks
122
Avg merge
10h 37m
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rust-cli/book

All issues in rust-cli/book

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.