From 672418af194d41abcb3aa44a6d2a3e7141556259 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 12 May 2019 12:42:28 +0200 Subject: [PATCH] Cleanup --- README.md | 18 ++++++++---------- ungleichcli.py => ungleich | 2 +- ungleich_dns.py | 4 +++- 3 files changed, 12 insertions(+), 12 deletions(-) rename ungleichcli.py => ungleich (98%) mode change 100644 => 100755 diff --git a/README.md b/README.md index 36a30cb..7138b3f 100644 --- a/README.md +++ b/README.md @@ -7,19 +7,17 @@ It is intended to be used by ungleich engineers and skilled customers. * ensure you have python3 * git clone this repo -* python ungleich-cli.py + +## Usage general + +``` +ungleich --help +``` ## Usage: DNS -installing the package via pip (python3 required) - -```angular2 -python3 -m pip install ungleich-cli ``` -after installed you can set the reverse dns by typing - -```angular2 -ungleich-cli dns --set-reverse --user --token --name mirror.example.com +ungleich dns --set-reverse --user --token --name mirror.example.com ``` ### Usage: RIPE @@ -27,7 +25,7 @@ ungleich-cli dns --set-reverse --user --token --name mir Creating a new route6 object: ``` -ungleichcli.py ripe-add-route6 \ +ungleich ripe-add-route6 \ --network 2a09:2947::/32 --description "First REST /32" --password "very secure" diff --git a/ungleichcli.py b/ungleich old mode 100644 new mode 100755 similarity index 98% rename from ungleichcli.py rename to ungleich index b1f8282..6d6a818 --- a/ungleichcli.py +++ b/ungleich @@ -5,7 +5,7 @@ import argparse from ungleich_dns import ungleichDNS from ungleich_ripe import ungleichRIPE -VERSION = "0.0.2" +VERSION = "0.0.3" class ungleichCLI(object): def __init__(self): diff --git a/ungleich_dns.py b/ungleich_dns.py index 1dd8204..cd47685 100644 --- a/ungleich_dns.py +++ b/ungleich_dns.py @@ -6,7 +6,9 @@ class ungleichDNS(object): self.parser = parser self.parser['dns'] = self.parser['sub'].add_parser( - 'dns', parents=[parents]) + 'dns', + help="Manage DNS entries @ ungleich", + parents=[parents]) self.parser['dns'].add_argument('--set-reverse', help='REQUIRED: IPv6 Address of your VM', metavar='', required=True) self.parser['dns'].add_argument('--user', help='Your ungleich username', metavar='', required=True)