1
0
mirror of https://github.com/jht5945/finding.git synced 2025-12-27 13:20:03 +08:00

update readme, rep

This commit is contained in:
2019-12-13 00:48:03 +08:00
parent 5684f5c08e
commit 5c628ff68a
3 changed files with 41 additions and 2 deletions

2
Cargo.lock generated
View File

@@ -127,7 +127,7 @@ dependencies = [
[[package]] [[package]]
name = "finding" name = "finding"
version = "0.1.2" version = "0.1.3"
dependencies = [ dependencies = [
"argparse 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", "argparse 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
"rust_util 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "rust_util 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",

View File

@@ -1,9 +1,11 @@
[package] [package]
name = "finding" name = "finding"
version = "0.1.2" version = "0.1.3"
authors = ["Hatter Jiang <jht5945@gmail.com>"] authors = ["Hatter Jiang <jht5945@gmail.com>"]
edition = "2018" edition = "2018"
description = "command line finding tool" description = "command line finding tool"
readme = "README.md"
repository = "https://github.com/jht5945/finding"
license = "MIT" license = "MIT"
[dependencies] [dependencies]

View File

@@ -4,8 +4,45 @@ finding - command line find tool.
#### Install #### Install
```shell ```shell
cargo install finding
cargo install --git https://github.com/jht5945/finding cargo install --git https://github.com/jht5945/finding
``` ```
#### Help
```
$ finding --help
Usage:
finding [OPTIONS] [SEARCH TEXT]
finding - command line find tool.
Positional arguments:
SEARCH TEXT Search text
Optional arguments:
-h,--help Show this help message and exit
-t,--target TARGET Target, text, huge[file], default text
-d,--dir DIR Target directory, default current dir(.)
--huge-file HUGE_FILE Huge file size, default 100M
--large-text-file LARGE_TEXT_FILE
Large text file, default 10M
-f,--file-ext FILE_EXT
File ext, default all
-i,--ignore-case Ignore case, default false
--filter-large-line Filter large line
--large-line-size LARGE_LINE_SIZE
Large line, default 10KB
--scan-dot-git Scan dot git
--skip-dot-dir Skipt dot dir [Text Mode]
--skip-link-dir Skip link dir
--filter-file-name FILTER_FILE_NAME
Filter file name [Text Mode]
--filter-line-content FILTER_LINE_CONTENT
Filter line content [Text Mode]
-v,--version Print version
--verbose Verbose
```