Apply
ApplyMultiCommand (OpenAPIMulitCommandBase)
¶
get_command(self, ctx, name)
¶
returns the command object by the given name. if the operation based on the given name could not be found, this method returns none.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ctx |
Context |
the click context. |
required |
name |
str |
the commands name. |
required |
Source code in camundactl/cmd/apply.py
def get_command(self, ctx: click.Context, name: str) -> Optional[click.Command]:
for verb in self.verbs:
self.verb = verb
if cmd := super().get_command(ctx, name):
return cmd
return None
list_commands(self, ctx)
¶
returns a list of commands based on the operation ids the verb for this class.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ctx |
Context |
the click context. |
required |
Source code in camundactl/cmd/apply.py
def list_commands(self, ctx: click.Context) -> List[str]:
result = []
for verb in self.verbs:
self.verb = verb
result += super().list_commands(ctx)
self.verb = None
return result