rust-cli / rust-cli/book

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.

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

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.

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.

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.