import platform
import paxexpress_cli
from typer import Typer
from paxexpress_cli import (
    repo_cli,
    authentication_cli,
    package_cli,
    file_cli,
    version_cli,
    device_cli,
)
from rich import print

system = platform.system()
if system in ["Darwin", "Windows"]:
    from keyring import set_keyring
if system == "Darwin":
    from keyring.backends import OS_X

    set_keyring(OS_X.Keyring())
elif system == "Windows":
    from keyring.backends import Windows

    try:
        import win32ctypes
    except ImportError:
        print("win32ctypes not found")
        print("try: \npip install pypiwin32")
        exit(1)

    set_keyring(Windows.WinVaultKeyring())
else:
    # automate platform detection
    pass
cli = Typer()

cli.add_typer(repo_cli, name="repository", help="work with repositories")
cli.add_typer(authentication_cli, name="auth", help="login and logout")
cli.add_typer(package_cli, name="package", help="Work with packages")
cli.add_typer(version_cli, name="version", help="Work with versions")
cli.add_typer(file_cli, name="file", help="Work with files")
cli.add_typer(device_cli, name="device", help="Work with devices")


self_cli = Typer(name="self")


@self_cli.command(help="Display cli tool version")
def version():
    print(paxexpress_cli.__version__)


cli.add_typer(self_cli, name="self")


def main():
    cli()


if __name__ == "__main__":
    cli()

4197bbb439ca1a52efde9fbbf4d6c2a7c8ba565c
<mask token>


@self_cli.command(help='Display cli tool version')
def version():
    print(paxexpress_cli.__version__)


<mask token>


def main():
    cli()


<mask token>

<mask token>
if system in ['Darwin', 'Windows']:
    from keyring import set_keyring
if system == 'Darwin':
    from keyring.backends import OS_X
    set_keyring(OS_X.Keyring())
elif system == 'Windows':
    from keyring.backends import Windows
    try:
        import win32ctypes
    except ImportError:
        print('win32ctypes not found')
        print('try: \npip install pypiwin32')
        exit(1)
    set_keyring(Windows.WinVaultKeyring())
else:
    pass
<mask token>
cli.add_typer(repo_cli, name='repository', help='work with repositories')
cli.add_typer(authentication_cli, name='auth', help='login and logout')
cli.add_typer(package_cli, name='package', help='Work with packages')
cli.add_typer(version_cli, name='version', help='Work with versions')
cli.add_typer(file_cli, name='file', help='Work with files')
cli.add_typer(device_cli, name='device', help='Work with devices')
<mask token>


@self_cli.command(help='Display cli tool version')
def version():
    print(paxexpress_cli.__version__)


cli.add_typer(self_cli, name='self')


def main():
    cli()


if __name__ == '__main__':
    cli()

<mask token>
system = platform.system()
if system in ['Darwin', 'Windows']:
    from keyring import set_keyring
if system == 'Darwin':
    from keyring.backends import OS_X
    set_keyring(OS_X.Keyring())
elif system == 'Windows':
    from keyring.backends import Windows
    try:
        import win32ctypes
    except ImportError:
        print('win32ctypes not found')
        print('try: \npip install pypiwin32')
        exit(1)
    set_keyring(Windows.WinVaultKeyring())
else:
    pass
cli = Typer()
cli.add_typer(repo_cli, name='repository', help='work with repositories')
cli.add_typer(authentication_cli, name='auth', help='login and logout')
cli.add_typer(package_cli, name='package', help='Work with packages')
cli.add_typer(version_cli, name='version', help='Work with versions')
cli.add_typer(file_cli, name='file', help='Work with files')
cli.add_typer(device_cli, name='device', help='Work with devices')
self_cli = Typer(name='self')


@self_cli.command(help='Display cli tool version')
def version():
    print(paxexpress_cli.__version__)


cli.add_typer(self_cli, name='self')


def main():
    cli()


if __name__ == '__main__':
    cli()

import platform
import paxexpress_cli
from typer import Typer
from paxexpress_cli import repo_cli, authentication_cli, package_cli, file_cli, version_cli, device_cli
from rich import print
system = platform.system()
if system in ['Darwin', 'Windows']:
    from keyring import set_keyring
if system == 'Darwin':
    from keyring.backends import OS_X
    set_keyring(OS_X.Keyring())
elif system == 'Windows':
    from keyring.backends import Windows
    try:
        import win32ctypes
    except ImportError:
        print('win32ctypes not found')
        print('try: \npip install pypiwin32')
        exit(1)
    set_keyring(Windows.WinVaultKeyring())
else:
    pass
cli = Typer()
cli.add_typer(repo_cli, name='repository', help='work with repositories')
cli.add_typer(authentication_cli, name='auth', help='login and logout')
cli.add_typer(package_cli, name='package', help='Work with packages')
cli.add_typer(version_cli, name='version', help='Work with versions')
cli.add_typer(file_cli, name='file', help='Work with files')
cli.add_typer(device_cli, name='device', help='Work with devices')
self_cli = Typer(name='self')


@self_cli.command(help='Display cli tool version')
def version():
    print(paxexpress_cli.__version__)


cli.add_typer(self_cli, name='self')


def main():
    cli()


if __name__ == '__main__':
    cli()

import platform
import paxexpress_cli
from typer import Typer
from paxexpress_cli import (
    repo_cli,
    authentication_cli,
    package_cli,
    file_cli,
    version_cli,
    device_cli,
)
from rich import print

system = platform.system()
if system in ["Darwin", "Windows"]:
    from keyring import set_keyring
if system == "Darwin":
    from keyring.backends import OS_X

    set_keyring(OS_X.Keyring())
elif system == "Windows":
    from keyring.backends import Windows

    try:
        import win32ctypes
    except ImportError:
        print("win32ctypes not found")
        print("try: \npip install pypiwin32")
        exit(1)

    set_keyring(Windows.WinVaultKeyring())
else:
    # automate platform detection
    pass
cli = Typer()

cli.add_typer(repo_cli, name="repository", help="work with repositories")
cli.add_typer(authentication_cli, name="auth", help="login and logout")
cli.add_typer(package_cli, name="package", help="Work with packages")
cli.add_typer(version_cli, name="version", help="Work with versions")
cli.add_typer(file_cli, name="file", help="Work with files")
cli.add_typer(device_cli, name="device", help="Work with devices")


self_cli = Typer(name="self")


@self_cli.command(help="Display cli tool version")
def version():
    print(paxexpress_cli.__version__)


cli.add_typer(self_cli, name="self")


def main():
    cli()


if __name__ == "__main__":
    cli()
