all repos — fae @ d07d92aaa5fcf0b38a695564c95be57add833264

A minuscule find and edit utility.

Changes.
h3rald h3rald@h3rald.com
Wed, 04 Nov 2020 15:45:09 +0100
commit

d07d92aaa5fcf0b38a695564c95be57add833264

parent

b0b49c9943bcd73a43e8f420dddcf5fd983f531b

3 files changed, 28 insertions(+), 7 deletions(-)

jump to
M .gitignore.gitignore

@@ -1,4 +1,3 @@

-nimcache -packages +packages/ fae -test +test/
M README.mdREADME.md

@@ -1,2 +1,24 @@

-# fae -Find and Edit Utility +# FAE v1.0.0 - Find & Edit Utility + +``` + (c) 2020 Fabio Cevasco + + Usage: + fae <pattern> <replacement> [option1 option2 ...] + + Where: + <pattern> A regular expression to search for + <replacement> An optional replacement string + + Options: + -a, --apply Substitute all occurrences of <pattern> with <replacement> in all files + without asking for confirmation. + -d, --directory Search in the specified directory (default: .) + -f, --filter Specify a regular expression to filter file paths. + -h, --help Display this message. + -i, --insensitive Case-insensitive matching. + -r, --recursive Search directories recursively. + -s, --silent Do not display matches. + -t, --test Do not perform substitutions, just print results. + -v, --version Display the program version. +```
M fae.nimfae.nim

@@ -22,10 +22,10 @@ silent: bool

addExitProc(resetAttributes) -const version = "1.1.0" +const version = "1.0.0" const usage = """FAE v""" & version & """ - Find & Edit Utility - (c) 2015-2020 Fabio Cevasco + (c) 2020 Fabio Cevasco Usage: fae <pattern> <replacement> [option1 option2 ...]