From 0c16b1a261bec92845bf7e8575795186ac7886b2 Mon Sep 17 00:00:00 2001 From: xenozoid Date: Sun, 12 Aug 2018 14:53:06 +0300 Subject: [PATCH] update docs and bump the version --- Cargo.toml | 2 +- README.md | 6 +++++- docs/usage.md | 2 +- src/main.rs | 6 ++++-- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ce3915a3..7e1be64a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fselect" -version = "0.4.2" +version = "0.4.3" authors = ["jhspetersson "] description = "Find files with SQL-like queries" keywords = ["find", "files", "sql", "query", "tool"] diff --git a/README.md b/README.md index 98b25b8d..b6413f5f 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ More is under way! #### Windows 64bit -A statically precompiled [binary](https://github.com/jhspetersson/fselect/releases/download/0.4.2/fselect.zip) is available at Github downloads. +A statically precompiled [binary](https://github.com/jhspetersson/fselect/releases/download/0.4.3/fselect.zip) is available at Github downloads. #### Mac @@ -183,6 +183,10 @@ Find special files: fselect path from /tmp where is_pipe = true fselect path from /tmp where is_socket = 1 + +Include arbitrary text as columns: + + fselect name, ' has size of ', size, ' bytes' Order results: diff --git a/docs/usage.md b/docs/usage.md index c64557cb..7572e4b8 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -12,7 +12,7 @@ You write SQL-like query, that's it. But if you'll put one more `select` behind occasionally, that's not a problem. Next you put columns you are interested in. It could be file name or path, size, modification date, etc. -See full list of possible columns. +See full list of possible columns. You can add columns with arbitrary text (put in quotes if it contains spaces). Where to search? Specify with `from` keyword. You can list one or more directories separated with comma. If you leave the `from`, then current directory will be processed. diff --git a/src/main.rs b/src/main.rs index e9679c37..e4d2b0af 100644 --- a/src/main.rs +++ b/src/main.rs @@ -68,9 +68,11 @@ fn main() { } fn usage_info(t: &mut Box) { - print!("FSelect utility v"); + const VERSION: &'static str = env!("CARGO_PKG_VERSION"); + + print!("FSelect utility"); t.fg(term::color::BRIGHT_YELLOW).unwrap(); - println!("0.4.2"); + println!(" {}", VERSION); t.reset().unwrap(); println!("Find files with SQL-like queries.");