How to use the paconn.__CLI_NAME__ function in paconn

To help you get started, we’ve selected a few paconn examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / PowerPlatformConnectors / tools / paconn-cli / paconn / __main__.py View on Github external
def main():
    """
    The main method
    """

    try:
        from paconn import __CLI_NAME__
        cli_context = ConnectorsCli(
            cli_name=__CLI_NAME__,
            commands_loader_cls=ConnectorsCliCommandsLoader,
            config_dir=get_config_dir())

        exit_code = cli_context.invoke(sys.argv[1:])
        sys.exit(exit_code)
    except KeyboardInterrupt:
        sys.exit(1)
github microsoft / PowerPlatformConnectors / tools / paconn-cli / paconn / common / util.py View on Github external
def get_config_dir():
    """
    Returns the user config directory.
    """
    from paconn import __CLI_NAME__
    return os.path.expanduser(os.path.join('~', '.{}'.format(__CLI_NAME__)))
github microsoft / PowerPlatformConnectors / tools / paconn-cli / paconn / commands / commands.py View on Github external
def operation_group(name):
        return '{cli_name}.commands.{name}#{name}'.format(cli_name=__CLI_NAME__, name=name)