Compare commits

..

No commits in common. "main" and "v0.0.3" have entirely different histories.

2 changed files with 5 additions and 15 deletions
setup.py
step_ca_inspector_client

View file

@ -10,7 +10,7 @@ setup(
#long_description_content_type="text/markdown",
install_requires=["requests>=2.20.0,<3.0", "PyYAML", "tabulate"],
keywords=["step-ca-inspector"],
version="0.0.4",
version="0.0.3",
classifiers=[
"Intended Audience :: Developers",
"Development Status :: 3 - Alpha",
@ -19,7 +19,6 @@ setup(
entry_points={
"console_scripts": [
"step-ca-inspector = step_ca_inspector_client.cli:main",
"step-inspector-plugin = step_ca_inspector_client.cli:main",
],
},
)

View file

@ -25,15 +25,6 @@ PROVISIONER_TYPES = [
SSH_CERT_TYPES = ["Host", "User"]
def case_insensitive_choice(choices):
def find_choice(choice):
for key, item in enumerate([choice.lower() for choice in choices]):
if choice.lower() == item:
return choices[key]
else:
return choice
return find_choice
def delta_text(delta):
s = "s"[: abs(delta.days) ^ 1]
@ -319,7 +310,7 @@ def main():
x509_list_parser = x509_subparsers.add_parser("list", help="List x509 certificates")
x509_list_parser.add_argument(
"--status",
type=case_insensitive_choice(CERT_STATUS),
type=str,
choices=CERT_STATUS,
default=["Valid"],
nargs="+",
@ -336,7 +327,7 @@ def main():
x509_list_parser.add_argument(
"--provisioner-type",
"-t",
type=case_insensitive_choice(PROVISIONER_TYPES),
type=str,
choices=PROVISIONER_TYPES,
default=None,
nargs="+",
@ -402,7 +393,7 @@ def main():
ssh_list_parser = ssh_subparsers.add_parser("list", help="List ssh certificates")
ssh_list_parser.add_argument(
"--status",
type=case_insensitive_choice(CERT_STATUS),
type=str,
choices=CERT_STATUS,
default=["Valid"],
nargs="+",
@ -419,7 +410,7 @@ def main():
ssh_list_parser.add_argument(
"--type",
"-t",
type=case_insensitive_choice(SSH_CERT_TYPES),
type=str,
choices=SSH_CERT_TYPES,
default=SSH_CERT_TYPES,
nargs="+",