ark_service_exec_action
ArkServiceExecAction
¶
Bases: ArkExecAction
Source code in ark_sdk_python/actions/ark_service_exec_action.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 |
|
can_run_exec_action(command_name, args)
¶
Checks whether there is a service definition for the command and its actions.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
command_name |
str
|
description |
required |
args |
Namespace
|
description |
required |
Returns:
Name | Type | Description |
---|---|---|
bool |
bool
|
description |
Source code in ark_sdk_python/actions/ark_service_exec_action.py
99 100 101 102 103 104 105 106 107 108 109 110 111 |
|
define_exec_action(exec_subparsers)
¶
Defines all the supported service actions as CLI actions, with its associated arguments and schemas.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
exec_subparsers |
_SubParsersAction
|
description |
required |
Source code in ark_sdk_python/actions/ark_service_exec_action.py
67 68 69 70 71 72 73 74 75 76 |
|
run_exec_action(api, args)
¶
Deduces from the arguments the appropriate service definition and action. Finds the appropriate service using the definition and executes the sync or async service action.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
api |
ArkCLIAPI
|
description |
required |
args |
Namespace
|
description |
required |
Source code in ark_sdk_python/actions/ark_service_exec_action.py
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
|