command-line-rust icon indicating copy to clipboard operation
command-line-rust copied to clipboard

Code for Command-Line Rust (O'Reilly, 2022, ISBN 9781098109417) https://learning.oreilly.com/library/view/command-line-rust/9781098109424/

Results 15 command-line-rust issues
Sort by recently updated
recently updated
newest added

Putting this as an issue on this repo rather than commenting on the book because this problem isn't actually anything to do with the book text; it only exists in...

This fixes the differences to the `cat` implementation for multiple files. See https://github.com/kyclark/command-line-rust/issues/9 Unfortunately, I haven't found a fix while still using enumerate. So, this kind of deviates from the...

Issue Description: When running cargo test for the hello1 and hello2 cases in the 02_echor code, the tests fail with the following error: ``` ---- hello2 stdout ---- thread 'hello2'...

On page 31 of the Kindle Edition of the book, the following example code from the book doesn't work on Windows: ``` use std::process::Command; #[test] fn runs() { let mut...

https://github.com/kyclark/command-line-rust/blob/e977e5b1412bb3cd20737465d61f0baca05536d3/07_findr/cp-tests.sh#L20 The created link `ln -s ../a/b.csv .` points to a non-existent file `/a/b.csv` when it should point to `/a/b/b.csv`

For everyone trying to follow along using a current (4.2.7) version of `clap` here's a working solution: ```rust use clap::{Arg, ArgAction, Command}; fn main() { let matches = Command::new("echor") .version("0.1.0")...

As part of working along, you suggest copying the tests over to our personal repo. Consider providing a cheat sheet for this as part of the documentation (i.e. a subsection...

## Overview I fixed an occasional test failure case in the `07-findr` test. ## Error Log ```text % cargo test Finished test [unoptimized + debuginfo] target(s) in 0.02s Running unittests...

It seems the link has changed. Thank you.

@kyclark, First, many thanks for writing this book and your ongoing support of it. I'm working through the 2024 edition and am learning a lot. I'm in chapter 8 on...