Version: 5.7.1
clc set
Set commands are a group of set operations.
Usage:
bash
clc set [command] [flags]
Commands
clc set clear
Deletes all entries of a set.
Usage:
bash
clc set clear [flags]
Parameters:
| Parameter | Required | Description | Default |
|---|---|---|---|
--name, -n | Optional | Name of the set. | default |
--yes | Optional | Skip confirming the destroy operation. | false |
Example:
bash
clc set clear --name my-set
clc set add
Adds values to the given set.
Usage:
bash
clc set add [values] [flags]
Parameters:
| Parameter | Required | Description | Default |
|---|---|---|---|
--name, -n | Optional | Name of the set. | default |
--value- | Optional | Data type of the value. One of: string, bool, json, i8, i16, i32, i64, f32, f64 | string |
Example:
bash
clc set add 1 2 3 4 --name my-set
clc set get-all
List all values in the given set.
Usage:
bash
clc set get-all [flags]
Parameters:
| Parameter | Required | Description | Default |
|---|---|---|---|
--name, -n | Optional | Name of the set. | default |
Example:
bash
clc set get-all --name my-set
clc set remove
Removes values from the given set.
Usage:
bash
clc set remove [values] [flags]
Parameters:
| Parameter | Required | Description | Default |
|---|---|---|---|
--name, -n | Optional | Name of the set. | default |
--value- | Optional | Data type of the value. One of: string, bool, json, i8, i16, i32, i64, f32, f64 | string |
Example:
bash
clc set remove 1 2 3 4 --name my-set
clc set size
Returns the size of the given set.
Usage:
bash
clc set size [flags]
Parameters:
| Parameter | Required | Description | Default |
|---|---|---|---|
--name, -n | Optional | Name of the set. | default |
Example:
bash
clc set size --name my-set
clc set destroy
Destroys a set. This command will delete the set and the data in it will not be available anymore.
Usage:
bash
clc set destroy [flags]
Parameters:
| Parameter | Required | Description | Default |
|---|---|---|---|
--name, -n | Optional | Name of the set. | default |
--yes | Optional | Skip confirming the destroy operation. | false |
Example:
bash
clc set destroy --name my-set