clc list
List commands are a group of list operations.
Usage:
clc list [command] [flags]
clc list add
Add a value in the given list.
Usage:
clc list add [value] [flags]
Parameters:
Parameter | Required | Description | Default |
---|---|---|---|
|
Optional |
Name of the list. |
|
|
Required |
Value to set for the key. |
N/A |
|
Optional |
Data type of the value. One of: |
String |
|
Optional |
Index for the value |
N/A |
Example:
clc list add --name example-list --value-type i16 10 --index 1
clc list contains
Check if the value is present in the list.
Usage:
clc list contains [value] [flags]
Parameters:
Parameter | Required | Description | Default |
---|---|---|---|
|
Optional |
Name of the list. |
|
|
Required |
Value to set for the key. |
N/A |
|
Optional |
Data type of the value. One of: |
String |
Example:
clc list contains --name example-list --value-type i16 10
clc list remove-value
Remove a value from the list.
Usage:
clc list remove-value [value] [flags]
Parameters:
Parameter | Required | Description | Default |
---|---|---|---|
|
Optional |
Name of the list. |
|
|
Required |
Value to set for the key. |
N/A |
|
Optional |
Data type of the value. One of: |
String |
Example:
clc list remove-value --name example-list --value-type i16 10
clc list remove-index
Remove the value at given index from the list.
Usage:
clc list remove-index [index] [flags]
Parameters:
Parameter | Required | Description | Default |
---|---|---|---|
|
Optional |
Name of the list. |
|
|
Required |
Index for the value |
N/A |
Example:
clc list remove-value --name example-list --value-type i16 10
clc list set
Set a value at the given index in the list.
Usage:
clc list set [index] [flags]
Parameters:
Parameter | Required | Description | Default |
---|---|---|---|
|
Optional |
Name of the list. |
|
|
Required |
Index for the value |
N/A |
|
Required |
Value to set for the key. |
N/A |
|
Optional |
Data type of the value. One of: |
String |
Example:
clc list set --name example-list 5 --value-type i16 10
clc list size
Prints the size of the given the list.
Usage:
clc list size [flags]
Parameters:
Parameter | Required | Description | Default |
---|---|---|---|
|
Optional |
Name of the map. |
|
clc list clear
Removes all entries from the list.
Usage:
clc list clear [flags]
Parameters:
Parameter | Required | Description | Default |
---|---|---|---|
|
Optional |
Name of the map. |
|
|
Optional |
Skip confirming the destroy operation. |
false |
clc list destroy
Destroy a list
This command will delete the list and the data in it will not be available anymore.
Usage:
clc list destroy [flags]
Parameters:
Parameter | Required | Description | Default |
---|---|---|---|
|
Optional |
Name of the map. |
|
|
Optional |
Skip confirming the destroy operation. |
false |