minitrino.cmd.exec module#
Docker Exec wrapper.
- minitrino.cmd.exec.build_cmd(ctx: MinitrinoContext, command: tuple, fqcn: str, user: str, interactive: bool) list[str][source][source]#
Build the docker exec command.
- Parameters:
ctx (MinitrinoContext) – The CLI context object.
command (tuple) – The command to execute inside the container.
fqcn (str) – Fully qualified container name.
user (str) – Username or UID to run the command as.
interactive (bool) – If True, runs the command in interactive mode.
- Returns:
The full docker exec command as a list of arguments.
- Return type:
list[str]