ark_action
ArkAction
¶
Bases: ABC
Source code in ark_sdk_python/actions/ark_action.py
9 10 11 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 |
|
can_run_action(action_name, args)
abstractmethod
¶
Checks whether the given action can be run with the specified arguments.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
action_name |
str
|
description |
required |
args |
Namespace
|
description |
required |
Returns:
Name | Type | Description |
---|---|---|
bool |
bool
|
description |
Source code in ark_sdk_python/actions/ark_action.py
75 76 77 78 79 80 81 82 83 84 85 86 |
|
define_action(subparsers)
abstractmethod
¶
Defines the action as part of the specified subparsers group.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
subparsers |
_SubParsersAction
|
description |
required |
Source code in ark_sdk_python/actions/ark_action.py
57 58 59 60 61 62 63 64 |
|
run_action(args)
abstractmethod
¶
Runs the actual action with the given arguments.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
args |
Namespace
|
description |
required |
Source code in ark_sdk_python/actions/ark_action.py
66 67 68 69 70 71 72 73 |
|