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"]
11
11
12
12
[dependencies ]
13
13
chrono = " 0.4.40"
14
- clap = " 4.5"
14
+ clap = { version = " 4.5" , features = [ " env " ] }
15
15
faccess = " 0.2.4"
16
16
walkdir = " 2.5"
17
17
regex = " 1.11"
@@ -33,6 +33,10 @@ pretty_assertions = "1.4.1"
33
33
name = " find"
34
34
path = " src/find/main.rs"
35
35
36
+ [[bin ]]
37
+ name = " locate"
38
+ path = " src/locate/main.rs"
39
+
36
40
[[bin ]]
37
41
name = " xargs"
38
42
path = " src/xargs/main.rs"
Original file line number Diff line number Diff line change 5
5
// https://opensource.org/licenses/MIT.
6
6
7
7
pub mod find;
8
+ pub mod locate;
8
9
pub 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