File tree 6 files changed +7
-7
lines changed
6 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -65,8 +65,8 @@ breathe = "^4.35.0"
65
65
json-schema-for-humans = " ^0.47"
66
66
67
67
[tool .poetry .scripts ]
68
- kresctl = ' knot_resolver.client.main:main '
69
- knot-resolver = ' knot_resolver.manager.main:main '
68
+ kresctl = " knot_resolver.client.__main__ "
69
+ knot-resolver = ' knot_resolver.manager.__main__ '
70
70
71
71
[tool .poe .tasks ]
72
72
# tasks runed through scripts located in 'scripts/poe-tasks/'
Original file line number Diff line number Diff line change 37
37
38
38
# check that doc/_static/config.schema.json is the latest
39
39
echo -e " ${yellow} Checking doc/_static/config.schema.json${reset} "
40
- python -m knot_resolver.client schema | diff - doc/_static/config.schema.json
40
+ python -m knot_resolver.client.__main__ schema | diff - doc/_static/config.schema.json
41
41
check_rv $?
42
42
echo
43
43
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ source $src_dir/utils/_env.sh
7
7
# validate all configuration examples
8
8
for example in $PWD /etc/config/config.example.* .yaml;
9
9
do
10
- python3 -m knot_resolver.client validate --no-strict $example ;
10
+ python3 -m knot_resolver.client.__main__ validate --no-strict $example ;
11
11
done
Original file line number Diff line number Diff line change @@ -9,4 +9,4 @@ is_build_dev_dir_configured
9
9
echo
10
10
11
11
# run knot-resolver client
12
- python3 -m knot_resolver.client --config " $KRES_DEV_CONFIG_FILE " " $@ "
12
+ python3 -m knot_resolver.client.__main__ --config " $KRES_DEV_CONFIG_FILE " " $@ "
Original file line number Diff line number Diff line change 32
32
echo --------------------------------------
33
33
echo Starting Knot Resolver wit the Manager
34
34
echo --------------------------------------
35
- python3 -m knot_resolver.manager --config " $KRES_DEV_CONFIG_FILE " " $@ "
35
+ python3 -m knot_resolver.manager.__main__ --config " $KRES_DEV_CONFIG_FILE " " $@ "
Original file line number Diff line number Diff line change @@ -8,6 +8,6 @@ schema_file="$gitroot/doc/_static/config.schema.json"
8
8
9
9
meson_setup_configure > /dev/null
10
10
cp $build_dir /python/knot_resolver/constants.py $gitroot /python/knot_resolver/constants.py
11
- python -m knot_resolver.client schema > $schema_file
11
+ python -m knot_resolver.client.__main__ schema > $schema_file
12
12
13
13
echo New JSON schema saved to $schema_file
You can’t perform that action at this time.
0 commit comments