<gh_stars>1-10
"""Entry or launch point for Service Fabric RC Query CLI.

Handles creating and launching a CLI to handle a user command."""

import sys
from rcctl.config import VersionedCLI
from rcctl.config import SF_CLI_CONFIG_DIR, SF_CLI_ENV_VAR_PREFIX, SF_CLI_NAME
from rcctl.commands import SFCommandLoader, SFCommandHelp

def cli():
    """Create CLI environment"""
    return VersionedCLI(cli_name=SF_CLI_NAME,
                        config_dir=SF_CLI_CONFIG_DIR,
                        config_env_var_prefix=SF_CLI_ENV_VAR_PREFIX,
                        commands_loader_cls=SFCommandLoader,
                        help_cls=SFCommandHelp)

def launch():
    """Entry point for Service Fabric CLI.

    Configures and invokes CLI with arguments passed during the time the python
    session is launched"""

    cli_env = cli()
    return cli_env.invoke(sys.argv[1:])

"""Entry or launch point for Service Fabric RC Query CLI.

Handles creating and launching a CLI to handle a user command."""

import sys
from rcctl.config import VersionedCLI
from rcctl.config import SF_CLI_CONFIG_DIR, SF_CLI_ENV_VAR_PREFIX, SF_CLI_NAME
from rcctl.commands import SFCommandLoader, SFCommandHelp

def cli():
    """Create CLI environment"""
    return VersionedCLI(cli_name=SF_CLI_NAME,
                        config_dir=SF_CLI_CONFIG_DIR,
                        config_env_var_prefix=SF_CLI_ENV_VAR_PREFIX,
                        commands_loader_cls=SFCommandLoader,
                        help_cls=SFCommandHelp)

def launch():
    """Entry point for Service Fabric CLI.

    Configures and invokes CLI with arguments passed during the time the python
    session is launched"""

    cli_env = cli()
    return cli_env.invoke(sys.argv[1:])
Entry or launch point for Service Fabric RC Query CLI.  Handles creating and launching a CLI to handle a user command. Create CLI environment Entry point for Service Fabric CLI.      Configures and invokes CLI with arguments passed during the time the python     session is launched