[pdm-devel] [PATCH datacenter-manager 4/5] cli: client: add `delete-token` option to delete token from remote
Michael Köppl
m.koeppl at proxmox.com
Tue Dec 9 15:52:29 CET 2025
shouldn't this also be implemented for the admin CLI?
On Fri Dec 5, 2025 at 7:04 PM CET, Shan Shaji wrote:
> Signed-off-by: Shan Shaji <s.shaji at proxmox.com>
> ---
> cli/client/src/remotes.rs | 11 ++++++++---
> 1 file changed, 8 insertions(+), 3 deletions(-)
>
> diff --git a/cli/client/src/remotes.rs b/cli/client/src/remotes.rs
> index 4145dac..0b4df3c 100644
> --- a/cli/client/src/remotes.rs
> +++ b/cli/client/src/remotes.rs
> @@ -116,12 +116,17 @@ async fn update_remote(id: String, updater: RemoteUpdater) -> Result<(), Error>
> input: {
> properties: {
> id: { schema: REMOTE_ID_SCHEMA },
> + "delete-token": {
> + type: bool,
> + optional: true,
> + description: "Remove the API-Token from remote."
> + }
> }
> }
> )]
> -/// Add a new remote.
> -async fn delete_remote(id: String) -> Result<(), Error> {
> - client()?.delete_remote(&id).await?;
> +/// Delete a remote.
> +async fn delete_remote(id: String, delete_token: Option<bool>) -> Result<(), Error> {
> + client()?.delete_remote(&id, &delete_token).await?;
> Ok(())
> }
>
More information about the pdm-devel
mailing list