From f24011796723d67b110e922c2db928fbf3a37e4f Mon Sep 17 00:00:00 2001 From: rithythul Date: Sat, 2 Aug 2025 14:59:12 +0700 Subject: [PATCH 1/5] update build warning --- Cargo.lock | 2 +- Cargo.toml | 6 +++--- man/{paru.8 => nali.8} | 21 +++++++++++---------- man/{paru.conf.5 => nali.conf.5} | 4 ++-- src/translate.rs | 2 ++ 5 files changed, 19 insertions(+), 16 deletions(-) rename man/{paru.8 => nali.8} (97%) rename man/{paru.conf.5 => nali.conf.5} (99%) diff --git a/Cargo.lock b/Cargo.lock index b983bd9..8837b7e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1309,7 +1309,7 @@ dependencies = [ [[package]] name = "nali" -version = "2.1.0" +version = "1.0.0" dependencies = [ "alpm", "alpm-utils", diff --git a/Cargo.toml b/Cargo.toml index 1bf67fa..582cfae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "nali" -version = "2.1.0" -authors = ["morganamilo "] +version = "1.0.0" +authors = ["morganamilo ", "koompi "] edition = "2021" -description = "User-friendly package manager for KhmerOS - a fork of paru" +description = "User-friendly package manager for KhmerOS - based on paru" homepage = "https://github.com/koompi/nali" repository = "https://github.com/koompi/nali" documentation = "https://docs.rs/paru" diff --git a/man/paru.8 b/man/nali.8 similarity index 97% rename from man/paru.8 rename to man/nali.8 index c7f94d0..ac9e669 100644 --- a/man/paru.8 +++ b/man/nali.8 @@ -1,28 +1,29 @@ -.TH "PARU" "8" "2021\-03\-24" "paru v1.10.0 "Paru Manual" +.TH "NALI" "8" "2025\-08\-02" "nali v1.0.0 "Nali Manual" .nh .ad l .SH NAME -paru \- AUR helper and pacman wrapper +nali \- User-friendly package manager for KhmerOS .SH SYNOPSIS -\fIparu\fR [options] [targets] +\fInali\fR [options] [targets] .sp -\fIparu\fR +\fInali\fR .sp \fIparu\fR .SH DESCRIPTION -Paru is an AUR helper written in Rust and based on the design of yay. It aims -to be your standard pacman wrapping AUR helper with minimal interaction. +Nali is a user-friendly package manager for KhmerOS, forked from paru. It aims +to provide a simple and efficient way to manage packages while maintaining +compatibility with Arch Linux and AUR packages. -Paru is a tool to easily build and install packages from the AUR, along with -their dependencies. Paru also expands many of pacman's options making them +Nali is a tool to easily build and install packages from the AUR, along with +their dependencies. Nali also expands many of pacman's options making them AUR aware. -This manpage only covers options unique to paru. For other options see +This manpage only covers options unique to nali. For other options see \fBpacman(8)\fR. -.SH PARU OPERATIONS +.SH NALI OPERATIONS .TP .TP diff --git a/man/paru.conf.5 b/man/nali.conf.5 similarity index 99% rename from man/paru.conf.5 rename to man/nali.conf.5 index b40ec9a..e0ee2c2 100644 --- a/man/paru.conf.5 +++ b/man/nali.conf.5 @@ -1,8 +1,8 @@ -.TH "PARU.CONF" "5" "2021\-03\-24" "paru v1.10.0" "Paru Manual" +.TH "NALI.CONF" "5" "2025\-08\-02" "nali v1.0.0" "Nali Manual" .nh .ad l .SH NAME -paru.conf \- paru configuration file +nali.conf \- nali configuration file .SH SYNOPSIS $PARU_CONF, $XDG_CONFIG_HOME/paru/paru.conf, $HOME/.config/paru/paru.conf, /etc/paru.conf diff --git a/src/translate.rs b/src/translate.rs index d8184b8..7ba7913 100644 --- a/src/translate.rs +++ b/src/translate.rs @@ -71,11 +71,13 @@ impl CommandTranslator { } /// Returns a list of all supported English commands + #[cfg(test)] pub fn supported_commands(&self) -> Vec<&str> { self.translations.keys().map(|k| k.as_str()).collect() } /// Checks if a command is a supported English command + #[cfg(test)] pub fn is_english_command(&self, cmd: &str) -> bool { self.translations.contains_key(&cmd.to_lowercase()) } From a0d4c00a7bcf07212b4b68a88282b3ad3d5b0de6 Mon Sep 17 00:00:00 2001 From: rithythul Date: Sat, 2 Aug 2025 15:10:15 +0700 Subject: [PATCH 2/5] update build warning --- src/lib.rs | 6 +++--- src/translate.rs | 26 ++++++++++++++++---------- 2 files changed, 19 insertions(+), 13 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 3408c78..9b8b8b9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -168,12 +168,12 @@ async fn run2>(config: &mut Config, args: &[S]) -> Result { }; let translator = crate::translate::CommandTranslator::new(); - + // Convert args to Vec for translation let string_args: Vec = args.iter().map(|s| s.as_ref().to_string()).collect(); - + let translated_args = translator.translate(&string_args); - + log::debug!("Original args: {:?}", string_args); log::debug!("Translated args: {:?}", translated_args); diff --git a/src/translate.rs b/src/translate.rs index 7ba7913..9f95252 100644 --- a/src/translate.rs +++ b/src/translate.rs @@ -8,7 +8,7 @@ pub struct CommandTranslator { impl CommandTranslator { pub fn new() -> Self { let mut translations = HashMap::new(); - + // Core package operations translations.insert("install".to_string(), vec!["-S".to_string()]); translations.insert("update".to_string(), vec!["-Syu".to_string()]); @@ -18,13 +18,16 @@ impl CommandTranslator { translations.insert("info".to_string(), vec!["-Si".to_string()]); translations.insert("list".to_string(), vec!["-Q".to_string()]); translations.insert("clean".to_string(), vec!["-Sc".to_string()]); - + // Additional operations translations.insert("download".to_string(), vec!["-Sw".to_string()]); - translations.insert("reinstall".to_string(), vec!["-S".to_string(), "--needed".to_string()]); + translations.insert( + "reinstall".to_string(), + vec!["-S".to_string(), "--needed".to_string()], + ); translations.insert("purge".to_string(), vec!["-Rns".to_string()]); translations.insert("autoremove".to_string(), vec!["-Rns".to_string()]); - + // Package queries translations.insert("installed".to_string(), vec!["-Q".to_string()]); translations.insert("orphans".to_string(), vec!["-Qtd".to_string()]); @@ -33,16 +36,19 @@ impl CommandTranslator { translations.insert("files".to_string(), vec!["-Ql".to_string()]); translations.insert("owns".to_string(), vec!["-Qo".to_string()]); translations.insert("depends".to_string(), vec!["-Qi".to_string()]); - + // Repository operations translations.insert("refresh".to_string(), vec!["-Sy".to_string()]); translations.insert("mirror-update".to_string(), vec!["-Syy".to_string()]); - + // Package verification translations.insert("check".to_string(), vec!["-Dk".to_string()]); translations.insert("verify".to_string(), vec!["-Qk".to_string()]); - translations.insert("cache-info".to_string(), vec!["-Sc".to_string(), "--print".to_string()]); - + translations.insert( + "cache-info".to_string(), + vec!["-Sc".to_string(), "--print".to_string()], + ); + CommandTranslator { translations } } @@ -53,7 +59,7 @@ impl CommandTranslator { } let first_arg = &args[0]; - + // Check if it's already a pacman flag (starts with -) if first_arg.starts_with('-') { return args.to_vec(); @@ -126,4 +132,4 @@ mod tests { let translated = translator.translate(&args); assert_eq!(translated, vec!["unknown", "firefox"]); } -} \ No newline at end of file +} From 02597fa6822933f82cf03311d7221bc0d4da5073 Mon Sep 17 00:00:00 2001 From: rithythul Date: Sat, 2 Aug 2025 15:32:45 +0700 Subject: [PATCH 3/5] update build warning --- .github/workflows/nali.yml | 11 +---------- tests/common/mod.rs | 2 +- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/nali.yml b/.github/workflows/nali.yml index 6b54071..224bd51 100644 --- a/.github/workflows/nali.yml +++ b/.github/workflows/nali.yml @@ -48,16 +48,7 @@ jobs: image: archlinux steps: - name: Install Packages - run: pacman -Syu rust curl clang git base-devel libarchive meson asciidoc doxygen fakechroot pkgconf --noconfirm --needed - - - name: Install Pacman-git - run: | - git clone https://aur.archlinux.org/pacman-git - chown -R nobody pacman-git - cd pacman-git - sudo -u nobody makepkg --nocheck - sudo -u nobody makepkg --packagelist > list - yes | pacman -U $(cat list) + run: pacman -Syu rust clang gcc git libarchive pkgconf sudo fakeroot --noconfirm --needed - name: Checkout uses: actions/checkout@v2 diff --git a/tests/common/mod.rs b/tests/common/mod.rs index 30c4ffc..23380c6 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -172,7 +172,7 @@ async fn run(run_args: &[&str], repo: bool) -> Result<(TempDir, i32)> { if repo { let mut args = args.clone(); args.push("-Ly"); - let ret = paru::run(&args).await; + let ret = nali::run(&args).await; assert_eq!(ret, 0); } From 72d47b47a2174c05a8d74ce6ccf791bf84829740 Mon Sep 17 00:00:00 2001 From: rithythul Date: Mon, 18 Aug 2025 13:52:14 +0700 Subject: [PATCH 4/5] update change to koompi --- .github/workflows/build.yml | 14 +-- .github/workflows/{nali.yml => koompi.yml} | 2 +- Cargo.lock | 84 +++++++------- Cargo.toml | 6 +- Dockerfile | 4 +- README.md | 124 ++++++++++----------- nali.conf => koompi.conf | 8 +- man/{nali.8 => koompi.8} | 18 +-- man/{nali.conf.5 => koompi.conf.5} | 18 +-- scripts/dist | 4 +- src/help.rs | 62 +++++------ src/main.rs | 2 +- tests/common/mod.rs | 2 +- 13 files changed, 174 insertions(+), 174 deletions(-) rename .github/workflows/{nali.yml => koompi.yml} (98%) rename nali.conf => koompi.conf (77%) rename man/{nali.8 => koompi.8} (97%) rename man/{nali.conf.5 => koompi.conf.5} (95%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3694da3..82575c6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Build Nali Release +name: Build Koompi Release on: push: tags: @@ -42,8 +42,8 @@ jobs: - run: docker build --platform=linux/${{ matrix.platform.docker }} -o . . - uses: actions/upload-artifact@v3 with: - name: nali-${{ matrix.platform.arch }} - path: nali.tar.zst + name: koompi-${{ matrix.platform.arch }} + path: koompi.tar.zst release: name: Create GitHub Release @@ -59,7 +59,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ needs.get-version.outputs.version }} - release_name: Nali v${{ needs.get-version.outputs.version }} + release_name: Koompi v${{ needs.get-version.outputs.version }} draft: true prerelease: false @@ -73,13 +73,13 @@ jobs: steps: - uses: actions/download-artifact@v3 with: - name: nali-${{ matrix.arch }} + name: koompi-${{ matrix.arch }} - uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ needs.release.outputs.release-url }} - asset_name: nali-${{ needs.get-version.outputs.version }}-${{ matrix.arch }}.tar.zst - asset_path: nali.tar.zst + asset_name: koompi-${{ needs.get-version.outputs.version }}-${{ matrix.arch }}.tar.zst + asset_path: koompi.tar.zst asset_content_type: application/tar+zstd diff --git a/.github/workflows/nali.yml b/.github/workflows/koompi.yml similarity index 98% rename from .github/workflows/nali.yml rename to .github/workflows/koompi.yml index 224bd51..d915f08 100644 --- a/.github/workflows/nali.yml +++ b/.github/workflows/koompi.yml @@ -1,4 +1,4 @@ -name: Nali CI +name: Koompi CI on: push: diff --git a/Cargo.lock b/Cargo.lock index 8837b7e..7e06ddb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1156,6 +1156,48 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "koompi" +version = "1.0.0" +dependencies = [ + "alpm", + "alpm-utils", + "ansiterm", + "anyhow", + "async-trait", + "aur-depends", + "aur-fetch", + "bitflags 2.9.1", + "chrono", + "cini", + "dirs", + "env_logger", + "futures", + "globset", + "htmlescape", + "indicatif", + "log", + "nix", + "pacmanconf", + "raur", + "regex", + "reqwest", + "rss", + "scraper", + "serde", + "serde_json", + "signal-hook", + "smart-default", + "srcinfo", + "tempfile", + "terminal_size", + "tokio", + "toml", + "tr", + "unicode-width", + "url", +] + [[package]] name = "lazy_static" version = "1.5.0" @@ -1307,48 +1349,6 @@ dependencies = [ "windows-sys 0.59.0", ] -[[package]] -name = "nali" -version = "1.0.0" -dependencies = [ - "alpm", - "alpm-utils", - "ansiterm", - "anyhow", - "async-trait", - "aur-depends", - "aur-fetch", - "bitflags 2.9.1", - "chrono", - "cini", - "dirs", - "env_logger", - "futures", - "globset", - "htmlescape", - "indicatif", - "log", - "nix", - "pacmanconf", - "raur", - "regex", - "reqwest", - "rss", - "scraper", - "serde", - "serde_json", - "signal-hook", - "smart-default", - "srcinfo", - "tempfile", - "terminal_size", - "tokio", - "toml", - "tr", - "unicode-width", - "url", -] - [[package]] name = "native-tls" version = "0.2.14" diff --git a/Cargo.toml b/Cargo.toml index 582cfae..265d9d3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,12 +1,12 @@ [package] -name = "nali" +name = "koompi" version = "1.0.0" authors = ["morganamilo ", "koompi "] edition = "2021" description = "User-friendly package manager for KhmerOS - based on paru" -homepage = "https://github.com/koompi/nali" -repository = "https://github.com/koompi/nali" +homepage = "https://github.com/koompi/koompi" +repository = "https://github.com/koompi/koompi" documentation = "https://docs.rs/paru" license = "GPL-3.0" keywords = ["archlinux", "arch", "alpm", "pacman", "aur"] diff --git a/Dockerfile b/Dockerfile index 70251cd..ad4c1fc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,7 +23,7 @@ RUN meson setup \ RUN ninja -C build RUN ninja -C build install -WORKDIR /nali +WORKDIR /koompi ENV RUSTUP_HOME=/usr/local/rustup \ CARGO_HOME=/usr/local/cargo \ @@ -37,4 +37,4 @@ COPY ../ . RUN --mount=type=tmpfs,target=/usr/local/cargo/git ./scripts/dist FROM scratch AS export-stage -COPY --from=build-stage /nali/nali.tar.zst / +COPY --from=build-stage /koompi/koompi.tar.zst / diff --git a/README.md b/README.md index 2ff4f20..b5904a2 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,20 @@ -# Nali +# Koompi User-friendly package manager for KhmerOS - a fork of paru -[![nali](https://img.shields.io/badge/nali-v2.1.0-blue.svg)](https://github.com/koompi/nali) +[![koompi](https://img.shields.io/badge/koompi-v2.1.0-blue.svg)](https://github.com/koompi/koompi) ## Description -**Nali** is a fork of paru with intuitive English commands while maintaining full backward compatibility. Built upon the excellent [paru](https://github.com/Morganamilo/paru) codebase, nali preserves all of paru's powerful functionality while introducing simple English commands that eliminate the need to memorize cryptic pacman flags. +**Koompi** is a fork of paru with intuitive English commands while maintaining full backward compatibility. Built upon the excellent [paru](https://github.com/Morganamilo/paru) codebase, koompi preserves all of paru's powerful functiokoompity while introducing simple English commands that eliminate the need to memorize cryptic pacman flags. This project was **initiated by KOOMPI OS** to make Arch Linux package management more accessible to more users and those who prefer intuitive command syntax. ### Key Features -- **Intuitive English Commands**: Use `nali install firefox` instead of `paru -S firefox` +- **Intuitive English Commands**: Use `koompi install firefox` instead of `paru -S firefox` - **Full Backward Compatibility**: All existing pacman flags continue to work unchanged -- **AUR Support**: Complete AUR helper functionality inherited from paru +- **AUR Support**: Complete AUR helper functiokoompity inherited from paru - **KhmerOS Integration**: Optimized for KhmerOS distribution - **Zero Learning Curve**: Simple English verbs for common operations @@ -22,37 +22,37 @@ This project was **initiated by KOOMPI OS** to make Arch Linux package managemen | English Command | Traditional Flag | Description | |----------------|------------------|-------------| -| `nali install pkg` | `paru -S pkg` | Install a package | -| `nali update` | `paru -Syu` | Update all packages | -| `nali search pkg` | `paru -Ss pkg` | Search for packages | -| `nali remove pkg` | `paru -R pkg` | Remove a package | -| `nali info pkg` | `paru -Si pkg` | Show package information | -| `nali list` | `paru -Q` | List installed packages | -| `nali clean` | `paru -Sc` | Clean package cache | -| `nali upgrade` | `paru -Syu` | Upgrade all packages | -| `nali download pkg` | `paru -Sw pkg` | Download package only | -| `nali reinstall pkg` | `paru -S --needed pkg` | Reinstall package | -| `nali purge pkg` | `paru -Rns pkg` | Remove package with dependencies | -| `nali autoremove` | `paru -Rns $(pacman -Qtdq)` | Remove orphaned packages | -| `nali installed` | `paru -Q` | List installed packages | -| `nali orphans` | `paru -Qtd` | List orphaned packages | -| `nali foreign` | `paru -Qm` | List foreign packages | -| `nali explicit` | `paru -Qe` | List explicitly installed packages | -| `nali files pkg` | `paru -Ql pkg` | List package files | -| `nali owns file` | `paru -Qo file` | Find package that owns a file | -| `nali depends pkg` | `paru -Qi pkg` | Show package dependencies | -| `nali refresh` | `paru -Sy` | Refresh package databases | -| `nali mirror-update` | `paru -Syy` | Force refresh package databases | -| `nali check` | `paru -Dk` | Check package integrity | -| `nali verify` | `paru -Qk` | Verify package files | -| `nali cache-info` | `paru -Sc --print` | Show cache information | +| `koompi install pkg` | `paru -S pkg` | Install a package | +| `koompi update` | `paru -Syu` | Update all packages | +| `koompi search pkg` | `paru -Ss pkg` | Search for packages | +| `koompi remove pkg` | `paru -R pkg` | Remove a package | +| `koompi info pkg` | `paru -Si pkg` | Show package information | +| `koompi list` | `paru -Q` | List installed packages | +| `koompi clean` | `paru -Sc` | Clean package cache | +| `koompi upgrade` | `paru -Syu` | Upgrade all packages | +| `koompi download pkg` | `paru -Sw pkg` | Download package only | +| `koompi reinstall pkg` | `paru -S --needed pkg` | Reinstall package | +| `koompi purge pkg` | `paru -Rns pkg` | Remove package with dependencies | +| `koompi autoremove` | `paru -Rns $(pacman -Qtdq)` | Remove orphaned packages | +| `koompi installed` | `paru -Q` | List installed packages | +| `koompi orphans` | `paru -Qtd` | List orphaned packages | +| `koompi foreign` | `paru -Qm` | List foreign packages | +| `koompi explicit` | `paru -Qe` | List explicitly installed packages | +| `koompi files pkg` | `paru -Ql pkg` | List package files | +| `koompi owns file` | `paru -Qo file` | Find package that owns a file | +| `koompi depends pkg` | `paru -Qi pkg` | Show package dependencies | +| `koompi refresh` | `paru -Sy` | Refresh package databases | +| `koompi mirror-update` | `paru -Syy` | Force refresh package databases | +| `koompi check` | `paru -Dk` | Check package integrity | +| `koompi verify` | `paru -Qk` | Verify package files | +| `koompi cache-info` | `paru -Sc --print` | Show cache information | ## Installation ### For KhmerOS Users ```bash -sudo pacman -S nali +sudo pacman -S koompi ``` ### From Source @@ -60,18 +60,18 @@ sudo pacman -S nali ```bash sudo pacman -S --needed base-devel git -git clone https://github.com/koompi/nali.git -cd nali +git clone https://github.com/koompi/koompi.git +cd koompi makepkg -si ``` ### Building for Development ```bash -git clone https://github.com/koompi/nali.git -cd nali +git clone https://github.com/koompi/koompi.git +cd koompi cargo build --release -sudo cp target/release/nali /usr/local/bin/ +sudo cp target/release/koompi /usr/local/bin/ ``` ## Quick Start @@ -80,66 +80,66 @@ sudo cp target/release/nali /usr/local/bin/ ```bash # Install a package -nali install firefox +koompi install firefox # Update all packages -nali update +koompi update # Search for packages -nali search libreoffice +koompi search libreoffice # Remove a package -nali remove firefox +koompi remove firefox # Show package information -nali info firefox +koompi info firefox # List all installed packages -nali list +koompi list ``` ### Advanced Usage (All paru features work) ```bash # Install from AUR -nali install spotify +koompi install spotify # Upgrade AUR packages only -nali -Sua +koompi -Sua # Interactive search and install -nali libreoffice +koompi libreoffice # Build and install from local PKGBUILD -nali -Bi . +koompi -Bi . # Download PKGBUILD -nali -G spotify +koompi -G spotify ``` ## Examples ### English Commands ```bash -nali install firefox thunderbird libreoffice -nali update -nali search "office suite" -nali remove firefox -nali clean +koompi install firefox thunderbird libreoffice +koompi update +koompi search "office suite" +koompi remove firefox +koompi clean ``` ### Traditional Flags (still supported) ```bash -nali -S firefox thunderbird libreoffice -nali -Syu -nali -Ss "office suite" -nali -R firefox -nali -Sc +koompi -S firefox thunderbird libreoffice +koompi -Syu +koompi -Ss "office suite" +koompi -R firefox +koompi -Sc ``` ## Credits -**Nali** is built upon the excellent [paru](https://github.com/Morganamilo/paru) project by [Morganamilo](https://github.com/Morganamilo) and contributors. We extend our sincere gratitude to the paru development team for creating such a robust AUR helper. +**Koompi** is built upon the excellent [paru](https://github.com/Morganamilo/paru) project by [Morganamilo](https://github.com/Morganamilo) and contributors. We extend our sincere gratitude to the paru development team for creating such a robust AUR helper. - **Original Project**: [paru](https://github.com/Morganamilo/paru) by Morganamilo - **Maintainer**: KOOMPI OS Team @@ -150,7 +150,7 @@ nali -Sc We welcome contributions from the KhmerOS and Arch Linux communities: -1. **Bug Reports**: Please open issues on our [GitHub repository](https://github.com/koompi/nali/issues) +1. **Bug Reports**: Please open issues on our [GitHub repository](https://github.com/koompi/koompi/issues) 2. **Feature Requests**: Suggest new English commands or improvements 3. **Translations**: Help improve Khmer language support 4. **Documentation**: Contribute to user guides and examples @@ -161,13 +161,13 @@ See [CONTRIBUTING.md](./CONTRIBUTING.md) for detailed contribution guidelines. - **Documentation**: Available in both English and Khmer - **Community**: Join our [Telegram group](https://t.me/khmeros) for support -- **Issues**: Report bugs at [GitHub Issues](https://github.com/koompi/nali/issues) +- **Issues**: Report bugs at [GitHub Issues](https://github.com/koompi/koompi/issues) ## Debugging -Nali is built on paru, so debugging follows similar patterns: +Koompi is built on paru, so debugging follows similar patterns: -1. **Check if makepkg works**: If nali can't build a package, first verify `makepkg` can build it +1. **Check if makepkg works**: If koompi can't build a package, first verify `makepkg` can build it 2. **Enable debug mode**: Set `PARU_DEBUG=1` for verbose output 3. **Check logs**: Review `/var/log/pacman.log` for system-level issues @@ -192,7 +192,7 @@ cargo test cargo test -- test_install_translation # Manual testing -./target/debug/nali install firefox --dry-run +./target/debug/koompi install firefox --dry-run ``` ## License diff --git a/nali.conf b/koompi.conf similarity index 77% rename from nali.conf rename to koompi.conf index 4b9d55e..68f3a5e 100644 --- a/nali.conf +++ b/koompi.conf @@ -1,9 +1,9 @@ # -# $NALI_CONF -# /etc/nali.conf -# ~/.config/nali/nali.conf +# $KOOMPI_CONF +# /etc/koompi.conf +# ~/.config/koompi/koompi.conf # -# See the nali.conf(5) manpage for options +# See the koompi.conf(5) manpage for options # # GENERAL OPTIONS diff --git a/man/nali.8 b/man/koompi.8 similarity index 97% rename from man/nali.8 rename to man/koompi.8 index ac9e669..24b8854 100644 --- a/man/nali.8 +++ b/man/koompi.8 @@ -1,29 +1,29 @@ -.TH "NALI" "8" "2025\-08\-02" "nali v1.0.0 "Nali Manual" +.TH "KOOMPI" "8" "2025\-08\-02" "koompi v1.0.0 "Koompi Manual" .nh .ad l .SH NAME -nali \- User-friendly package manager for KhmerOS +koompi \- User-friendly package manager for KhmerOS .SH SYNOPSIS -\fInali\fR [options] [targets] +\fIkoompi\fR [options] [targets] .sp -\fInali\fR +\fIkoompi\fR .sp \fIparu\fR .SH DESCRIPTION -Nali is a user-friendly package manager for KhmerOS, forked from paru. It aims +Koompi is a user-friendly package manager for KhmerOS, forked from paru. It aims to provide a simple and efficient way to manage packages while maintaining compatibility with Arch Linux and AUR packages. -Nali is a tool to easily build and install packages from the AUR, along with -their dependencies. Nali also expands many of pacman's options making them +Koompi is a tool to easily build and install packages from the AUR, along with +their dependencies. Koompi also expands many of pacman's options making them AUR aware. -This manpage only covers options unique to nali. For other options see +This manpage only covers options unique to koompi. For other options see \fBpacman(8)\fR. -.SH NALI OPERATIONS +.SH KOOMPI OPERATIONS .TP .TP diff --git a/man/nali.conf.5 b/man/koompi.conf.5 similarity index 95% rename from man/nali.conf.5 rename to man/koompi.conf.5 index e0ee2c2..d23616d 100644 --- a/man/nali.conf.5 +++ b/man/koompi.conf.5 @@ -1,21 +1,21 @@ -.TH "NALI.CONF" "5" "2025\-08\-02" "nali v1.0.0" "Nali Manual" +.TH "KOOMPI.CONF" "5" "2025\-08\-02" "koompi v1.0.0" "Koompi Manual" .nh .ad l .SH NAME -nali.conf \- nali configuration file +koompi.conf \- koompi configuration file .SH SYNOPSIS -$PARU_CONF, $XDG_CONFIG_HOME/paru/paru.conf, $HOME/.config/paru/paru.conf, /etc/paru.conf +$KOOMPI_CONF, $XDG_CONFIG_HOME/koompi/koompi.conf, $HOME/.config/koompi/koompi.conf, /etc/koompi.conf .SH DESCRIPTION -Paru's config file. Based on the format used by +Koompi's config file. Based on the format used by .BR pacman.conf (5) -Paru first attempts to read the file at $PARU_CONF. If $PARU_CONF is not -set, paru attempts to read from $XDG_CONFIG_HOME/paru/paru.conf. If -$XDG_CONFIG_HOME is not set, or the file doesn't exist, paru attempts to read -from $HOME/.config/paru/paru.conf. If that file doesn't exist, it will read -the system config from /etc/paru.conf. +Koompi first attempts to read the file at $KOOMPI_CONF. If $KOOMPI_CONF is not +set, koompi attempts to read from $XDG_CONFIG_HOME/koompi/koompi.conf. If +$XDG_CONFIG_HOME is not set, or the file doesn't exist, koompi attempts to read +from $HOME/.config/koompi/koompi.conf. If that file doesn't exist, it will read +the system config from /etc/koompi.conf. Additionally, the \fBInclude\fB directive can be used to copy paste files into the config. This could be used to extend the system config by including it in diff --git a/scripts/dist b/scripts/dist index 57ccd07..9980119 100755 --- a/scripts/dist +++ b/scripts/dist @@ -3,7 +3,7 @@ set -e cargo build --release --features generate --locked --target-dir target scripts/mkmo locale/ -strip target/release/nali +strip target/release/koompi -tar --zstd -cf nali.tar.zst man completions nali.conf locale -C target/release nali +tar --zstd -cf koompi.tar.zst man completions koompi.conf locale -C target/release koompi diff --git a/src/help.rs b/src/help.rs index cd62495..ed614f1 100644 --- a/src/help.rs +++ b/src/help.rs @@ -2,43 +2,43 @@ use crate::printtr; pub fn help() { printtr!("Usage:"); - printtr!(" nali"); - printtr!(" nali [...]"); - printtr!(" nali "); + printtr!(" koompi"); + printtr!(" koompi [...]"); + printtr!(" koompi "); println!(); printtr!("English Commands (new!):"); - printtr!(" nali install Install packages"); - printtr!(" nali update Update all packages"); - printtr!(" nali search Search for packages"); - printtr!(" nali remove Remove packages"); - printtr!(" nali info Show package information"); - printtr!(" nali list List installed packages"); - printtr!(" nali clean Clean package cache"); - printtr!(" nali upgrade Upgrade all packages"); - printtr!(" nali download Download packages only"); - printtr!(" nali reinstall Reinstall packages"); - printtr!(" nali purge Remove packages with dependencies"); - printtr!(" nali autoremove Remove orphaned packages"); - printtr!(" nali refresh Refresh package databases"); - printtr!(" nali mirror-update Force refresh package databases"); + printtr!(" koompi install Install packages"); + printtr!(" koompi update Update all packages"); + printtr!(" koompi search Search for packages"); + printtr!(" koompi remove Remove packages"); + printtr!(" koompi info Show package information"); + printtr!(" koompi list List installed packages"); + printtr!(" koompi clean Clean package cache"); + printtr!(" koompi upgrade Upgrade all packages"); + printtr!(" koompi download Download packages only"); + printtr!(" koompi reinstall Reinstall packages"); + printtr!(" koompi purge Remove packages with dependencies"); + printtr!(" koompi autoremove Remove orphaned packages"); + printtr!(" koompi refresh Refresh package databases"); + printtr!(" koompi mirror-update Force refresh package databases"); println!(); printtr!("Pacman operations:"); - printtr!(" nali {-h --help}"); - printtr!(" nali {-V --version}"); - printtr!(" nali {-D --database} "); - printtr!(" nali {-F --files} [options] [package(s)]"); - printtr!(" nali {-Q --query} [options] [package(s)]"); - printtr!(" nali {-R --remove} [options] "); - printtr!(" nali {-S --sync} [options] [package(s)]"); - printtr!(" nali {-T --deptest} [options] [package(s)]"); - printtr!(" nali {-U --upgrade} [options] [file(s)]"); + printtr!(" koompi {-h --help}"); + printtr!(" koompi {-V --version}"); + printtr!(" koompi {-D --database} "); + printtr!(" koompi {-F --files} [options] [package(s)]"); + printtr!(" koompi {-Q --query} [options] [package(s)]"); + printtr!(" koompi {-R --remove} [options] "); + printtr!(" koompi {-S --sync} [options] [package(s)]"); + printtr!(" koompi {-T --deptest} [options] [package(s)]"); + printtr!(" koompi {-U --upgrade} [options] [file(s)]"); println!(); printtr!("New operations:"); - printtr!(" nali {-P --show} [options]"); - printtr!(" nali {-G --getpkgbuild} [package(s)]"); - printtr!(" nali {-B --build} [dir(s)]"); + printtr!(" koompi {-P --show} [options]"); + printtr!(" koompi {-G --getpkgbuild} [package(s)]"); + printtr!(" koompi {-B --build} [dir(s)]"); println!(); - printtr!("If no arguments are provided 'nali update' will be performed"); + printtr!("If no arguments are provided 'koompi update' will be performed"); println!(); printtr!("Options without operation:"); printtr!(" -c --clean Remove unneeded dependencies"); @@ -48,7 +48,7 @@ pub fn help() { printtr!(" --repo Assume targets are from the repositories"); printtr!(" --pkgbuilds Assume targets are from pkgbuild repositories"); printtr!(" -a --aur Assume targets are from the AUR"); - printtr!(" --mode Sets where nali looks for targets"); + printtr!(" --mode Sets where koompi looks for targets"); printtr!( " --interactive Enable interactive package selection for -S, -R, -Ss and -Qs" ); diff --git a/src/main.rs b/src/main.rs index 8304c82..ecb357a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,4 @@ -use nali::run; +use koompi::run; use std::process::exit; #[tokio::main] diff --git a/tests/common/mod.rs b/tests/common/mod.rs index 23380c6..9af3452 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -172,7 +172,7 @@ async fn run(run_args: &[&str], repo: bool) -> Result<(TempDir, i32)> { if repo { let mut args = args.clone(); args.push("-Ly"); - let ret = nali::run(&args).await; + let ret = koompi::run(&args).await; assert_eq!(ret, 0); } From 24987b0047b74ee7d26d73ac669d9eb601ed068b Mon Sep 17 00:00:00 2001 From: rithythul Date: Mon, 18 Aug 2025 14:25:40 +0700 Subject: [PATCH 5/5] update change to koompi --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b5904a2..4a56a36 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Koompi +# Koompi Cli User-friendly package manager for KhmerOS - a fork of paru @@ -6,7 +6,7 @@ User-friendly package manager for KhmerOS - a fork of paru ## Description -**Koompi** is a fork of paru with intuitive English commands while maintaining full backward compatibility. Built upon the excellent [paru](https://github.com/Morganamilo/paru) codebase, koompi preserves all of paru's powerful functiokoompity while introducing simple English commands that eliminate the need to memorize cryptic pacman flags. +**Koompi Cli** is a fork of paru with intuitive English commands while maintaining full backward compatibility. Built upon the excellent [paru](https://github.com/Morganamilo/paru) codebase, koompi preserves all of paru's powerful functiokoompity while introducing simple English commands that eliminate the need to memorize cryptic pacman flags. This project was **initiated by KOOMPI OS** to make Arch Linux package management more accessible to more users and those who prefer intuitive command syntax.