New version: 0.1.1 includes new user and zone command
Also allows list without zone for listing all records in all zones
This commit is contained in:
parent
9bdaa81aca
commit
c90ee01b93
3 changed files with 27 additions and 4 deletions
27
README.md
27
README.md
|
@ -191,9 +191,9 @@ options:
|
||||||
### LIST
|
### 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:
|
options:
|
||||||
-h, --help show this help message and exit
|
-h, --help show this help message and exit
|
||||||
|
@ -231,3 +231,26 @@ Available arguments are:
|
||||||
rtype: New record type.
|
rtype: New record type.
|
||||||
ttl: New record time to live (TTL).
|
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
|
||||||
|
```
|
||||||
|
|
||||||
|
|
|
@ -408,7 +408,7 @@ def get_parser() -> dict:
|
||||||
deletecmd.add_argument("-r", "--rtype")
|
deletecmd.add_argument("-r", "--rtype")
|
||||||
deletecmd.add_argument("-z", "--zone", required=True)
|
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 = subparsers.add_parser("list", description=list_description)
|
||||||
listcmd.add_argument("-d", "--data")
|
listcmd.add_argument("-d", "--data")
|
||||||
listcmd.add_argument("-n", "--name")
|
listcmd.add_argument("-n", "--name")
|
||||||
|
|
|
@ -16,7 +16,7 @@ classifiers=[
|
||||||
"Operating System :: OS Independent",
|
"Operating System :: OS Independent",
|
||||||
]
|
]
|
||||||
requires-python= ">=3.9"
|
requires-python= ">=3.9"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"argcomplete==2.0.0",
|
"argcomplete==2.0.0",
|
||||||
|
|
Loading…
Add table
Reference in a new issue