public inbox for pdm-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pdm-devel] [PATCH datacenter-manager] cli: admin: rename support-eligibility to support-status
@ 2025-12-17  8:52 Shannon Sterz
  0 siblings, 0 replies; only message in thread
From: Shannon Sterz @ 2025-12-17  8:52 UTC (permalink / raw)
  To: pdm-devel

since that is shorter and easier to spell.

Suggested-by: Lukas Wagner <l.wagner@proxmox.com>
Suggested-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
Signed-off-by: Shannon Sterz <s.sterz@proxmox.com>
---
 cli/admin/src/main.rs                             |  4 ++--
 .../{support_eligibility.rs => support_status.rs} | 15 ++++++---------
 server/src/report.rs                              |  2 +-
 3 files changed, 9 insertions(+), 12 deletions(-)
 rename cli/admin/src/{support_eligibility.rs => support_status.rs} (79%)

diff --git a/cli/admin/src/main.rs b/cli/admin/src/main.rs
index f4cbc80..f698fa2 100644
--- a/cli/admin/src/main.rs
+++ b/cli/admin/src/main.rs
@@ -9,7 +9,7 @@ use proxmox_router::RpcEnvironment;
 use proxmox_schema::api;
 
 mod remotes;
-mod support_eligibility;
+mod support_status;
 
 fn main() {
     //pbs_tools::setup_libc_malloc_opts(); // TODO: move from PBS to proxmox-sys and uncomment
@@ -37,7 +37,7 @@ fn main() {
             "report",
             CliCommand::new(&API_METHOD_GENERATE_SYSTEM_REPORT),
         )
-        .insert("support-eligibility", support_eligibility::cli())
+        .insert("support-status", support_status::cli())
         .insert("versions", CliCommand::new(&API_METHOD_GET_VERSIONS));
 
     let mut rpcenv = CliEnvironment::new();
diff --git a/cli/admin/src/support_eligibility.rs b/cli/admin/src/support_status.rs
similarity index 79%
rename from cli/admin/src/support_eligibility.rs
rename to cli/admin/src/support_status.rs
index 0f2cfca..89ccf6e 100644
--- a/cli/admin/src/support_eligibility.rs
+++ b/cli/admin/src/support_status.rs
@@ -9,17 +9,14 @@ use proxmox_schema::api;
 
 pub fn cli() -> CommandLineInterface {
     CliCommandMap::new()
-        .insert("get", CliCommand::new(&API_METHOD_SUPPORT_ELIGIBILITY))
-        .insert(
-            "update",
-            CliCommand::new(&API_METHOD_UPDATE_SUPPORT_ELIGIBILITY),
-        )
+        .insert("get", CliCommand::new(&API_METHOD_SUPPORT_STATUS))
+        .insert("update", CliCommand::new(&API_METHOD_UPDATE_SUPPORT_STATUS))
         .into()
 }
 
 #[api]
-/// Get the support eligibility information.
-async fn support_eligibility(
+/// Get the support status information.
+async fn support_status(
     param: Value,
     rpcenv: &mut dyn RpcEnvironment,
 ) -> Result<(), anyhow::Error> {
@@ -42,8 +39,8 @@ async fn support_eligibility(
 }
 
 #[api]
-/// Update the support eligibility information.
-async fn update_support_eligibility(
+/// Update the support status information.
+async fn update_support_status(
     param: Value,
     rpcenv: &mut dyn RpcEnvironment,
 ) -> Result<(), anyhow::Error> {
diff --git a/server/src/report.rs b/server/src/report.rs
index 9a52cd8..9da6b42 100644
--- a/server/src/report.rs
+++ b/server/src/report.rs
@@ -61,7 +61,7 @@ fn commands() -> Vec<(&'static str, Vec<&'static str>)> {
         ),
         (
             "proxmox-datacenter-manager-admin",
-            vec!["support-eligibility", "get"],
+            vec!["support-status", "get"],
         ),
         ("proxmox-boot-tool", vec!["status"]),
         ("df", vec!["-h", "-T"]),
-- 
2.47.3



_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-12-17  8:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-17  8:52 [pdm-devel] [PATCH datacenter-manager] cli: admin: rename support-eligibility to support-status Shannon Sterz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal