Add --check parameter to `virtualmin list-custom`

The https://www.virtualmin.com/documentation/developer/cli/modify_custom for virtualmin modify-custom command states:

You must also supply the --set parameter at least once, which has to be followed by the code for the field to update and the new value.

However, there is no Virtualmin CLI command to do the opposite action - to check the previously set value. Would be nice to introduce the new --check parameter to virtualmin list-custom command like:

virtualmin list-custom --domain $dom --check custom-fields-name
Status: 
Closed (fixed)

Comments

Actually, there is a list-custom API command that can display custom fields for a domain.

Status: Active » Fixed
Status: Fixed » Active

Jamie, please read my request once again. I know about the list-custom command, but it lists all the custom fields with their values, and I am suggesting a new command option to check the value of any given custom field.

What do you mean by check though? Validiating the field, or just displaying its contents?

Displaying the value of one particular custom field. Because there could be lot's of custom fields and if there is a way to modify single fields value with virtualmin modify-custom why not to provide some way to display a single field value?

The list-custom operates all the fields at once and if you have bunch of custom fields you really do not want to list them all and then iterate through them to preg a value of just one of them.

Ok, I see what you mean - I will add flags to the list-custom API command to make this possible.

Status: Active » Fixed
Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.