October 2019
Intermediate to advanced
444 pages
10h 37m
English
A simple program that uses command-line arguments to print directories/files only requires a few steps:
[package]name = "list"version = "1.0.0"authors = ["Claus Matzinger <claus.matzinger+kb@gmail.com>"]edition = "2018"# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html[dependencies]clap = {version= "2.33", features = ["suggestions", "color"]}
use clap::{App, Arg, SubCommand};use std::fs::DirEntry;use std::path::Path;use ...