API Docs¶
CLI¶
CLI module.
- class docker_services_cli.cli.ServicesCtx(filepath, verbose)[source]¶
Context class for docker services cli.
Constructor.
- docker_services_cli.cli.env_output(env_set_command)[source]¶
Decorate command to print exportable environment settings.
- docker_services_cli.cli.services_by_type(func)[source]¶
Decorate command adding all service types as options.
- Parameters
func – The function that implements the Click command to which the service types options will be added.
- Returns
A wrapped function around the passed Click command which exposes all
config.SERVICES_TYPES
as Click options. The list of services by type is injected asservices
keyword argument.