diff options
| author | rorka900 <rorka900@gmail.com> | 2026-04-24 17:53:49 +0300 |
|---|---|---|
| committer | rorka900 <rorka900@gmail.com> | 2026-04-24 17:53:49 +0300 |
| commit | 9c9ce088193c2506da372c76685076bbfead0690 (patch) | |
| tree | 8eacd30624a4d6da552f8de44a1e1273bfede3d4 /src/config.rs | |
| parent | f2ab400fb6750fbe017309757f06339437b7c4b8 (diff) | |
| download | ror-9c9ce088193c2506da372c76685076bbfead0690.tar.gz ror-9c9ce088193c2506da372c76685076bbfead0690.zip | |
feat: modernize CLI with clap subcommands and add declarative apply1.0.0-r1
Diffstat (limited to 'src/config.rs')
| -rw-r--r-- | src/config.rs | 9 |
1 files changed, 5 insertions, 4 deletions
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<String>, } +#[allow(dead_code)] impl SystemProfile { pub fn group_name(&self) -> Option<String> { 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", ); |