From c90ee01b93b7930f53b06d89b5408cc2b6e20f98 Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Sat, 21 Dec 2024 15:51:35 +0100 Subject: [PATCH] New version: 0.1.1 includes new user and zone command Also allows list without zone for listing all records in all zones --- README.md | 27 +++++++++++++++++++++++++-- knotctl/__init__.py | 2 +- pyproject.toml | 2 +- 3 files changed, 27 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0289926..715e862 100644 --- a/README.md +++ b/README.md @@ -191,9 +191,9 @@ options: ### LIST ``` -usage: knotctl list [-h] [-d DATA] [-n NAME] [-r RTYPE] -z ZONE +usage: knotctl list [-h] [-d DATA] [-n NAME] [-r RTYPE] [-z ZONE] -List records in the zone. +List records. options: -h, --help show this help message and exit @@ -231,3 +231,26 @@ Available arguments are: rtype: New record type. ttl: New record time to live (TTL). ``` + +### USER +``` +usage: knotctl user [-h] [-u USERNAME] + +View user information. + +options: + -h, --help show this help message and exit + -u USERNAME, --username USERNAME +``` + +### ZONE + +``` +usage: knotctl zone + +List zones. + +options: + -h, --help show this help message and exit +``` + diff --git a/knotctl/__init__.py b/knotctl/__init__.py index 9b1451f..4ad668a 100755 --- a/knotctl/__init__.py +++ b/knotctl/__init__.py @@ -408,7 +408,7 @@ def get_parser() -> dict: deletecmd.add_argument("-r", "--rtype") deletecmd.add_argument("-z", "--zone", required=True) - list_description = "List records in the zone." + list_description = "List records." listcmd = subparsers.add_parser("list", description=list_description) listcmd.add_argument("-d", "--data") listcmd.add_argument("-n", "--name") diff --git a/pyproject.toml b/pyproject.toml index 279556c..cef6614 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,7 @@ classifiers=[ "Operating System :: OS Independent", ] requires-python= ">=3.9" -version = "0.1.0" +version = "0.1.1" dependencies = [ "argcomplete==2.0.0",