Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
CLI Book – Rolling Review – DO NOT MERGE #58
This pull request is not meant to ever be merged.
The book is written like this: New chapters will be added in PRs, where they get a bit of review, and finally get merged into master. Once they land in master, it's hard to leave review comments, though!
This PR is meant to give you a way to review the book and leave comments in an easy way. It shows the diff between master before I added the book and master right now, so it'll always show the full book, and also automatically mark comments as resolved once new content lands in master.
Not meant to replace the book chapter, just wants to provide an alternative perspective on this in the context of CLI apps.
Use code blocks instead of indented normal text; before, backticks were not displayed correctly.
* Add intro text to in-depth section * Bump mdbook version to 0.3.5 * Update dependencies Just to make sure they still work. Also adds actual commit hash to git dependency.
Links from doc.rust-lang.org/1.31.0 changed to 1.39.0. Linked content largely unchanged, so nothing further needed. One link also had a chapter title change ("Packages, Crates, and Modules" is now "Managing Growing Projects with Packages, Crates, and Modules"), so name of the link changed with it. Fixes #156
As of version 0.11.0, the assert_cmd crate has dropped the `main_binary()` function in favor of `cargo_bin()` that takes the name of the cargo binary. Update the testing chapter of the book to use `cargo_bin("grrs")` with the binary name hard coded. Another option would be to use `cargo_bin(env!("CARGO_PKG_NAME"))` if you briefly wanted to explain cargo's environmental variables and the `env!()` macro.