summaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authorrorka900 <rorka900@gmail.com>2026-04-24 17:53:49 +0300
committerrorka900 <rorka900@gmail.com>2026-04-24 17:53:49 +0300
commit9c9ce088193c2506da372c76685076bbfead0690 (patch)
tree8eacd30624a4d6da552f8de44a1e1273bfede3d4 /src/config.rs
parentf2ab400fb6750fbe017309757f06339437b7c4b8 (diff)
downloadror-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.rs9
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",
);