Skip to content
Snippets Groups Projects
Commit 54db0415 authored by Aleš Mrázek's avatar Aleš Mrázek
Browse files

scripts/poe-tasks: kresctl task script added

parent 1d989a25
1 merge request!1577manager: moving things to the repository root and minor cleanup
......@@ -19,4 +19,4 @@ else
echo "poethepoet version - must be >=0.22.0" >&2
echo "Python version - must be >=3.8" >&2
exit 1
fi
fi
\ No newline at end of file
......@@ -82,8 +82,7 @@ gen-setuppy = { cmd = "scripts/poe-tasks/gen-setuppy", help = "Generate 'setup.p
format = { cmd = "scripts/poe-tasks/format", help = "Run code formatter" }
# tasks runned directly
fixdeps = { shell = "poetry install; npm install; npm update", help = "Install/update dependencies according to configuration files"}
kresctl = { script = "knot_resolver_manager.cli.main:main", cwd="${POE_PWD}", help="Run kresctl utility" }
kresctl-nocwd = { script = "knot_resolver_manager.cli.main:main", help="Run kresctl utility" } # Python <3.8 and poethepoet <0.22.0 compatibility (see also `./poe`)
kresctl = { cmd = "scripts/poe-tasks/kresctl", help="Run kresctl utility" }
clean = """
rm -rf .coverage
.mypy_cache
......
#!/bin/bash
# ensure consistent behaviour
src_dir="$(dirname "$(realpath "$0")")"
source $src_dir/_env.sh
# run knot-resolver client
python3 -m knot_resolver_manager.cli $@
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment