CPL_CLI¶
- cpl_cli.command
- cpl_cli.command.add_service module
- cpl_cli.command.build_service module
- cpl_cli.command.generate_service module
- cpl_cli.command.help_service module
- cpl_cli.command.install_service module
- cpl_cli.command.new_service module
- cpl_cli.command.publish_service module
- cpl_cli.command.remove_service module
- cpl_cli.command.start_service module
- cpl_cli.command.uninstall_service module
- cpl_cli.command.update_service module
- cpl_cli.command.version_service module
- cpl_cli.configuration
- cpl_cli.configuration.build_settings module
- cpl_cli.configuration.build_settings_name_enum module
- cpl_cli.configuration.project_settings module
- cpl_cli.configuration.project_settings_name_enum module
- cpl_cli.configuration.project_type_enum module
- cpl_cli.configuration.settings_helper module
- cpl_cli.configuration.version_settings module
- cpl_cli.configuration.version_settings_name_enum module
- cpl_cli.configuration.workspace_settings module
- cpl_cli.configuration.workspace_settings_name_enum module
- cpl_cli.live_server
- cpl_cli.publish
- cpl_cli.source_creator
cpl_cli.cli¶
-
class
cpl_cli.cli.
CLI
(config: cpl.configuration.configuration_abc.ConfigurationABC, services: cpl.dependency_injection.service_provider_abc.ServiceProviderABC)¶ Bases:
cpl.application.application_abc.ApplicationABC
-
configure
()¶ Prepare the application :return:
-
main
()¶ Entry point of the CPL CLI :return:
-
cpl_cli.cli_settings¶
-
class
cpl_cli.cli_settings.
CLISettings
¶ Bases:
cpl.configuration.configuration_model_abc.ConfigurationModelABC
-
from_dict
(settings: dict)¶ Converts attributes to dict :param settings: :return:
-
property
pip_path
¶
-
cpl_cli.cli_settings_name_enum¶
cpl_cli.command_abc¶
cpl_cli.command_handler_service¶
-
class
cpl_cli.command_handler_service.
CommandHandler
(config: cpl.configuration.configuration_abc.ConfigurationABC, services: cpl.dependency_injection.service_provider_abc.ServiceProviderABC)¶ Bases:
abc.ABC
-
add_command
(cmd: cpl_cli.command_model.CommandModel)¶
-
property
commands
¶
-
handle
(cmd: str, args: list)¶ Handles incoming commands and args :param cmd: :param args: :return:
-
remove_command
(cmd: cpl_cli.command_model.CommandModel)¶
-
cpl_cli.command_model¶
-
class
cpl_cli.command_model.
CommandModel
(name: str, aliases: list, command: collections.abc.Callable[cpl_cli.command_abc.CommandABC], is_workspace_needed: bool, is_project_needed: bool, change_cwd: bool)¶ Bases:
object
-
property
aliases
¶
-
property
change_cwd
¶
-
property
command
¶
-
property
is_project_needed
¶
-
property
is_workspace_needed
¶
-
property
name
¶
-
property
cpl_cli.error¶
cpl_cli.startup¶
-
class
cpl_cli.startup.
Startup
(config: cpl.configuration.configuration_abc.ConfigurationABC, services: cpl.dependency_injection.service_collection_abc.ServiceCollectionABC)¶ Bases:
cpl.application.startup_abc.StartupABC
-
configure_configuration
() → cpl.configuration.configuration_abc.ConfigurationABC¶ Creates configuration of application :return: configuration
-
configure_services
() → cpl.dependency_injection.service_provider_abc.ServiceProviderABC¶ Creates service provider :return: service provider
-