ark_cache_action
ArkCacheAction
¶
Bases: ArkAction
Source code in ark_sdk_python/actions/ark_cache_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 |
|
can_run_action(action_name, args)
¶
Asserts the action is cache
.
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_cache_action.py
53 54 55 56 57 58 59 60 61 62 63 64 65 |
|
define_action(subparsers)
¶
Defines the CLI cache
action, and adds the clear cache function.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
subparsers |
_SubParsersAction
|
description |
required |
Source code in ark_sdk_python/actions/ark_cache_action.py
13 14 15 16 17 18 19 20 21 22 23 24 25 |
|
run_action(args)
¶
Runs the cache action.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
args |
Namespace
|
description |
required |
Raises:
Type | Description |
---|---|
ArkException
|
description |
Source code in ark_sdk_python/actions/ark_cache_action.py
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
|