[pdm-devel] [PATCH proxmox-datacenter-manager 25/25] cli: add commands for metric-collection settings, trigger, status

Lukas Wagner l.wagner at proxmox.com
Thu Feb 13 16:11:12 CET 2025



On  2025-02-13 15:58, Lukas Wagner wrote:
> On  2025-02-13 15:56, Wolfgang Bumiller wrote:
>>>>> +
>>>>> +pub fn cli() -> CommandLineInterface {
>>>>> +    CliCommandMap::new()
>>>>> +        .insert(
>>>>> +            "show-settings",
>>>>> +            CliCommand::new(&API_METHOD_SHOW_COLLECTION_SETTINGS),
>>>>> +        )
>>>>
>>>> ↑↓ wouldn't `settings show`, `settings update` be more consistent?
>>>>
>>>>> +        .insert(
>>>>> +            "update-settings",
>>>>> +            CliCommand::new(&API_METHOD_UPDATE_COLLECTION_SETTINGS),
>>>>> +        )
>>>
>>> I see your point, but then a 'show' next to a 'status' also felt a bit weird, that
>>> was the reason why I added the suffix to make it more clear. I can change it back
>>> if you prefer.
>>
>> Well, it's a "settings show", not a "show settings", next to the
>> "status", as in, the show is on a different level, or what do you mean?
> 
> Oh, right, that's better. I'll do it that way then.
> 

To avoid any confusion, originally I just had
 proxmox-datacenter-client metric-collection status
 proxmox-datacenter-client metric-collection show
 proxmox-datacenter-client metric-collection update

and I missed the 'settings' prefix that you put in your suggestion,
I thought you suggested the same thing I already had in an earlier version.

So what I will do in v2 now is a 

 proxmox-datacenter-client metric-collection status
 proxmox-datacenter-client metric-collection settings show
 proxmox-datacenter-client metric-collection settings update

Sorry for the confusion and noise.

-- 
- Lukas






More information about the pdm-devel mailing list