From 9c9ce088193c2506da372c76685076bbfead0690 Mon Sep 17 00:00:00 2001 From: rorka900 Date: Fri, 24 Apr 2026 17:53:49 +0300 Subject: feat: modernize CLI with clap subcommands and add declarative apply --- src/config.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/config.rs') diff --git a/src/config.rs b/src/config.rs index ff83f01..c2d8cdb 100644 --- a/src/config.rs +++ b/src/config.rs @@ -72,6 +72,7 @@ pub struct SystemProfile { pub active_group: Option, } +#[allow(dead_code)] impl SystemProfile { pub fn group_name(&self) -> Option { if let Some(g) = &self.active_group { @@ -108,6 +109,7 @@ impl SystemProfile { list.push(new_pkg.to_string()); } } + #[allow(dead_code)] pub fn remove_from_list_role(&mut self, role: &str, pkg: &str) { let list = match role { @@ -215,11 +217,10 @@ impl Config { "parallel_downloads = 4\n", "arch = x86_64\n", "libc = glibc\n", - "\n", "[repositories.rorkos]\n", - "url = \"https://github.com/RorkOS/RorkOS_package\"\n", - "urlrepo = \"https://github.com/RorkOS/RorkOS_packages_bin/releases/download/latest/\"\n", - "mirror = \"https://github.com/rork-os/RorkOS_package\"\n", + "url = \"https://\"\n", + "urlrepo = \"https://\"\n", + "mirror = \"https://\"\n", "gpg_support = true\n", "gpg_key = \"rorka.pub\"\n", ); -- cgit v1.2.3