Skip to content

Commit

Permalink
list: add new walkdir-list binary
Browse files Browse the repository at this point in the history
This supplants the previous "example" which was more like a debugging
program. So this commit not only rewrites it (dropping docopt in the
process in favor of clap), but moves it to its own non-published binary
crate.
  • Loading branch information
BurntSushi committed Jul 20, 2019
1 parent 8deb700 commit 526d70b
Show file tree
Hide file tree
Showing 5 changed files with 320 additions and 108 deletions.
8 changes: 3 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ exclude = ["/ci/*", "/.travis.yml", "/appveyor.yml"]
travis-ci = { repository = "BurntSushi/walkdir" }
appveyor = { repository = "BurntSushi/walkdir" }

[workspace]
members = ["walkdir-list"]

[dependencies]
same-file = "1.0.1"

Expand All @@ -27,11 +30,6 @@ features = ["std", "winnt"]
version = "0.1.1"

[dev-dependencies]
docopt = "1.0.1"
quickcheck = { version = "0.8", default-features = false }
rand = "0.6"
serde = "1"
serde_derive = "1"
quickcheck = { version = "0.8.2", default-features = false }
rand = "0.6.5"
doc-comment = "0.3"
1 change: 1 addition & 0 deletions ci/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ if [ "$TRAVIS_RUST_VERSION" = "$MSRV" ]; then
exit
fi

cargo build --verbose --all
cargo doc --verbose
cargo test --verbose
103 changes: 0 additions & 103 deletions examples/walkdir.rs

This file was deleted.

23 changes: 23 additions & 0 deletions walkdir-list/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[package]
publish = false
name = "walkdir-bin"
version = "0.0.0"
authors = ["Andrew Gallant <jamslam@gmail.com>"]
description = "A simple command line tool for playing with walkdir on the CLI."
documentation = "https://docs.rs/walkdir"
homepage = "https://github.com/BurntSushi/walkdir"
repository = "https://github.com/BurntSushi/walkdir"
keywords = ["walk", "directory", "recursive", "find"]
license = "Unlicense OR MIT"
categories = ["command-line-utilities"]
edition = "2018"

[[bin]]
name = "walkdir-list"
path = "main.rs"

[dependencies]
atty = "0.2.11"
bstr = { version = "0.1.2", default-features = false, features = ["std"] }
clap = { version = "2.33.0", default-features = false }
walkdir = { version = "*", path = ".." }
Loading

0 comments on commit 526d70b

Please sign in to comment.