From 37a813d72178de69e2bc20ddf70c05968bb6bd05 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 22 Jul 2024 18:33:11 +0200 Subject: [PATCH] pveum: user token: rename remove command to delete with alias All other groups use delete for deleting users/groups/... so it makes sense to do so for the user token command group too. Add an alias for the old command for backwards compatibility to avoid that scrips and muscle memory break. Signed-off-by: Thomas Lamprecht --- src/PVE/CLI/pveum.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PVE/CLI/pveum.pm b/src/PVE/CLI/pveum.pm index 5ce76f2..a9f94b1 100755 --- a/src/PVE/CLI/pveum.pm +++ b/src/PVE/CLI/pveum.pm @@ -207,7 +207,8 @@ our $cmddef = { token => { add => [ 'PVE::API2::User', 'generate_token', ['userid', 'tokenid'], {}, $print_api_result, $PVE::RESTHandler::standard_output_options ], modify => [ 'PVE::API2::User', 'update_token_info', ['userid', 'tokenid'], {}, $print_api_result, $PVE::RESTHandler::standard_output_options ], - remove => [ 'PVE::API2::User', 'remove_token', ['userid', 'tokenid'], {}, $print_api_result, $PVE::RESTHandler::standard_output_options ], + delete => [ 'PVE::API2::User', 'remove_token', ['userid', 'tokenid'], {}, $print_api_result, $PVE::RESTHandler::standard_output_options ], + remove => { alias => 'delete' }, list => [ 'PVE::API2::User', 'token_index', ['userid'], {}, $print_api_result, $PVE::RESTHandler::standard_output_options], permissions => [ __PACKAGE__, 'token_permissions', ['userid', 'tokenid'], {}, $print_perm_result, $PVE::RESTHandler::standard_output_options], }