Skip to content

Commit

Permalink
update docs and bump the version
Browse files Browse the repository at this point in the history
  • Loading branch information
jhspetersson committed Aug 12, 2018
1 parent 8749b6a commit 0c16b1a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "fselect"
version = "0.4.2"
version = "0.4.3"
authors = ["jhspetersson <jhspetersson@gmail.com>"]
description = "Find files with SQL-like queries"
keywords = ["find", "files", "sql", "query", "tool"]
Expand Down
6 changes: 5 additions & 1 deletion README.md
Expand Up @@ -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

Expand Down Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion docs/usage.md
Expand Up @@ -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.
Expand Down
6 changes: 4 additions & 2 deletions src/main.rs
Expand Up @@ -68,9 +68,11 @@ fn main() {
}

fn usage_info(t: &mut Box<StdoutTerminal>) {
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.");
Expand Down

0 comments on commit 0c16b1a

Please sign in to comment.