knotctl 0.0.9__tar.gz → 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: knotctl
3
- Version: 0.0.9
3
+ Version: 0.1.0
4
4
  Summary: A CLI for knotapi.
5
5
  Author-email: Micke Nordin <hej@mic.ke>
6
6
  Requires-Python: >=3.9
@@ -419,7 +419,6 @@ def main() -> int:
419
419
  updatecmd.add_argument(
420
420
  "-a",
421
421
  "--argument",
422
- nargs="*",
423
422
  action="append",
424
423
  metavar="KEY=VALUE",
425
424
  help="Specify key - value pairs to be updated: name=dns1.example.com. or data=127.0.0.1 for example. --argument can be repeated",
@@ -473,6 +472,7 @@ def main() -> int:
473
472
  headers = {"Authorization": "Bearer {}".format(token)}
474
473
 
475
474
  # Route based on command
475
+ url = ""
476
476
  ttl = None
477
477
  if "ttl" in args:
478
478
  ttl = args.ttl
@@ -520,7 +520,7 @@ def main() -> int:
520
520
  run_log(url, args.json, headers)
521
521
  else:
522
522
  parser.print_help(sys.stderr)
523
- return 1
523
+ return 2
524
524
  except requests.exceptions.RequestException as e:
525
525
  output(error(e, "Could not connect to server"))
526
526
  except (RequestsJSONDecodeError, SimplejsonJSONDecodeError):
@@ -16,7 +16,7 @@ classifiers=[
16
16
  "Operating System :: OS Independent",
17
17
  ]
18
18
  requires-python= ">=3.9"
19
- version = "0.0.9"
19
+ version = "0.1.0"
20
20
 
21
21
  dependencies = [
22
22
  "argcomplete==2.0.0",
File without changes
File without changes