File tree Expand file tree Collapse file tree 4 files changed +444
-1
lines changed Expand file tree Collapse file tree 4 files changed +444
-1
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ authors = ["uutils developers"]
1111
1212[dependencies ]
1313chrono = " 0.4.40"
14- clap = " 4.5"
14+ clap = { version = " 4.5" , features = [ " env " ] }
1515faccess = " 0.2.4"
1616walkdir = " 2.5"
1717regex = " 1.11"
@@ -33,6 +33,10 @@ pretty_assertions = "1.4.1"
3333name = " find"
3434path = " src/find/main.rs"
3535
36+ [[bin ]]
37+ name = " locate"
38+ path = " src/locate/main.rs"
39+
3640[[bin ]]
3741name = " xargs"
3842path = " src/xargs/main.rs"
Original file line number Diff line number Diff line change 55// https://opensource.org/licenses/MIT.
66
77pub mod find;
8+ pub mod locate;
89pub mod xargs;
Original file line number Diff line number Diff line change 1+ fn main ( ) {
2+ let args = std:: env:: args ( ) . collect :: < Vec < String > > ( ) ;
3+ let strs: Vec < & str > = args. iter ( ) . map ( std:: convert:: AsRef :: as_ref) . collect ( ) ;
4+ std:: process:: exit ( findutils:: locate:: locate_main ( strs. as_slice ( ) ) ) ;
5+ }
You can’t perform that action at this time.
0 commit comments