all repos — pls @ cd60ae98501233913965c6301b9227b5f9f52f7c

A polite but determined task runner.

Minor improvements.
h3rald h3rald@h3rald.com
Wed, 13 Oct 2021 14:37:46 +0200
commit

cd60ae98501233913965c6301b9227b5f9f52f7c

parent

3284cacd07c3da23b272477bc1d7175c38ff392a

1 files changed, 4 insertions(+), 1 deletions(-)

jump to
M src/pls.nimsrc/pls.nim

@@ -28,8 +28,9 @@ --deps, -d Displays dependencies of the specified command.

--things, -t[:<query>] Displays all known things, optionally matching <query> <query> can contain a start and/or leading * for simple searches. --inspect, -i Display information on the specified command. - --full, -f If -a or -t are specified, display all properties for item. + --full, -f If -a or -t are specified, display all properties for items. If -d is specified, outputs debug information for configuration parsing. + Otherwise, print additional information when executing commands. --version, -v Displays the version of the application. """ % [pkgTitle, pkgVersion, pkgDescription, pkgAuthor]

@@ -290,6 +291,8 @@ cmd = cmd.replace(PEG_PLACEHOLDER) do (m: int, n: int, c: openArray[string]) -> string:

return resolvePlaceholder(c[0], thing) debug(" -> Resolved Command: " & cmd) if not OPT_INSPECT: + if OPT_FULL: + echo "=== Executing Action: $1 -> $2" % [command, cmd] result = execShellCmd cmd proc filterItems*(t: string, query=""): seq[string] =