# kyclark/command-line-rust

Code for Command-Line Rust (O'Reilly, 2024, ISBN 9781098109417)

Repository: https://github.com/kyclark/command-line-rust
Canonical: https://ross.abutalabs.com/products/command-line-rust
Homepage: https://learning.oreilly.com/library/view/command-line-rust/9781098109424/
Language: Rust
License: MIT
License Family: permissive
Topics: rust, cli, command-line, programming-language
Last push: 2024-08-06T22:36:40+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 2372, "days_push": 757, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2025, forks 321 (observed 2026-08-28T04:06:06.757929+00:00)

## What it is
The companion code repository for the O'Reilly book 'Command-Line Rust' by Ken Youens-Clark, containing small complete Rust programs built chapter by chapter. It teaches Rust through writing, testing, and refining command-line tools using the clap argument parser.

## Use cases
- learn rust by building command-line programs
- find example rust cli projects with tests
- understand how to parse command-line arguments with clap
- learn error handling and file io in rust
- see how to parse delimited and raw text in rust
- study a rust book's source code
- practice writing rust programs that fail gracefully

## When to choose
- you are learning Rust and prefer a project-based, hands-on approach
- you want to build command-line tools in Rust with clap
- you want tested, complete example programs to study or adapt
- you need guidance on Rust error handling, file I/O, and argument validation

## When to avoid
- you need a production-ready CLI framework or library rather than educational code
- you want comprehensive coverage of all of Rust, such as async, web, or systems programming topics
- you are not interested in command-line programming

## Facets
- artifact type: learning-resource
- maturity: stable
- function: cli, testing, parser, developer-tools
- domain: developer-tools, tutorials, programming-languages
- platform: rust, cli, cross-platform
- tags: book, oreilly, rust-learning, clap, example-code, project-based-learning, command-line

## Member repositories
- kyclark/command-line-rust (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:06.757929+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:59:46.190094+00:00, confidence not recorded.
  - readme: https://github.com/kyclark/command-line-rust (fetched 2026-08-28T04:06:06.757929+00:00, sha 4f92b5b75d61)
- Data as of 2026-08-30T08:39:29.467469+00:00.
