all repos — fae @ d1f733f17e6506b769e5e4ee1c5f1c16f38a9a7b

A minuscule find and edit utility.

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

d1f733f17e6506b769e5e4ee1c5f1c16f38a9a7b

parent

53d14ebb92e1758b9463527027a039205a568481

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 ...]