dnc

CLI tool to check domain names configuration and statistics
Log | Files | Refs | README | LICENSE

commit bd43434f44d1f42cc048eccad74a0ea9af810e59
parent 9301655030d8d2efcaa5aa50b7e881efeb2185a5
Author: Frederic Cambus <fred@statdns.com>
Date:   Tue, 19 Jan 2021 15:22:53 +0100

Simplify things regarding how the domain name is displayed.

Diffstat:
Mdnc.py | 9++-------
1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/dnc.py b/dnc.py @@ -45,15 +45,11 @@ def tls(domain: str, _: str) -> str: ).strftime("%Y-%m-%d") -def domain(domain: str, _: str) -> str: - return domain - - def main(): results = PrettyTable(hrules=1) header = ["Domain"] - actions = [(domain, None)] + actions = [] try: options, args = getopt.getopt(sys.argv[1:], "46mnsv") @@ -85,8 +81,7 @@ def main(): results.align = "l" for name in args: - row = [fn(name, action) for fn, action in actions] - results.add_row(row) + results.add_row([name] [fn(name, action) for fn, action in actions]) print(results)