docs: align READMEs with AGENTS.md conventions
Add the development & conventions section that AGENTS.md points to, so the README documents the branch/commit/naming/comment/test/issue/.gitignore rules it summarizes, and refresh the Flatpak provider paragraph with the new desktop-launcher integration, honest search status and integration tests. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
2 files changed
+26
-2
No files matched your search
+13
-1
@@ -136,7 +136,7 @@ Search queries **all active providers at once**: every result shows its origin i
|
||||
|
||||
### Adding a provider (plugins)
|
||||
|
||||
Pacman and Flatpak are **built-in**. Flatpak installs auto-add the flathub remote when missing and fall back to a **per-user** install (no password) when the system-wide install fails (polkit, homonymous remotes) — the real error is shown on failure. To add another manager (apt, dnf, zypper, or another distro's repos) without touching the application:
|
||||
Pacman and Flatpak are **built-in**. Flatpak installs auto-add the flathub remote when missing and fall back to a **per-user** install (no password) when the system-wide install fails (polkit, homonymous remotes) — the real error is shown on failure. An app installed via Flatpak appears immediately in the desktop launcher: its `.desktop` entries and icons are linked into `~/.local/share/applications` and `~/.local/share/icons` (the XDG dirs scanned by **every** environment: wofi, GNOME, KDE…), exactly like a pacman install, and are removed again on uninstall. Search shows the real status of each app (Installed / Update available). This is covered by an **integration test** that drives the real flatpak CLI (install, list, update, search, uninstall). To add another manager (apt, dnf, zypper, or another distro's repos) without touching the application:
|
||||
|
||||
1. Implement `IPackageManager` in a `.cpp` file (copy `plugins/example-provider/example-provider.cpp` as a template).
|
||||
2. Export the C ABI contract with the `FWS_PROVIDER_PLUGIN(MyManager, "id", "Name", "1.0.0", "Description", "Author")` macro.
|
||||
@@ -152,6 +152,18 @@ cmake -B build -DFWS_BUILD_EXAMPLE_PLUGIN=ON && cmake --build build
|
||||
|
||||
The plugin must be compiled with the same compiler and headers as the application (like a regular Qt plugin).
|
||||
|
||||
## Development & conventions
|
||||
|
||||
This project follows the **FWS** organisation conventions, detailed in `AGENTS.md`:
|
||||
|
||||
- **Branches**: `type/description` (e.g. `feat/login`, `fix/typo`).
|
||||
- **Commits**: message in **English**, **Conventional Commits** format `<type>(<scope>): <description>`. Allowed types: `feat`, `fix`, `docs`, `style`, `refactor`, `perf`, `test`, `build`, `ci`, `chore`, `revert`. Short, imperative title; the body explains only the **why**.
|
||||
- **Naming**: `kebab-case` files; identifiers (variables, functions, classes) in **English**.
|
||||
- **Code & comments**: in **English**, "why" style (document the non-obvious — design choices, trade-offs — not the trivial).
|
||||
- **Tests**: `*.test.*` files with `describe` / `it` names in English; run tests (and typecheck / lint when present) before considering a task done. Run them with `ctest` from `build/`.
|
||||
- **Issues & bugs**: tracked through **issues** linked to the **Kanban** board; any PR fixing a bug references the issue (`Fixes #123`); do not close or modify an issue without explicit request.
|
||||
- **Sensitive files (`.gitignore`)**: never commit `.env*`, `.freebuff/`, `build/` / `dist/` / `target/` / `__pycache__/`, `node_modules/`, secrets. A `.gitignore` exists at the repo root.
|
||||
|
||||
## License
|
||||
|
||||
Coming soon
|
||||
@@ -136,7 +136,7 @@ La recherche interroge **tous les fournisseurs actifs à la fois** : chaque rés
|
||||
|
||||
### Ajouter un fournisseur (plugins)
|
||||
|
||||
Pacman et Flatpak sont **intégrés**. L'installation Flatpak ajoute automatiquement le dépôt flathub si besoin et retombe en installation **utilisateur** (sans mot de passe) quand l'installation système échoue (polkit, plusieurs dépôts homonymes) — l'erreur réelle est affichée en cas d'échec. Pour ajouter un autre gestionnaire (apt, dnf, zypper, ou les dépôts d'une autre distro) sans toucher à l'application :
|
||||
Pacman et Flatpak sont **intégrés**. L'installation Flatpak ajoute automatiquement le dépôt flathub si besoin et retombe en installation **utilisateur** (sans mot de passe) quand l'installation système échoue (polkit, plusieurs dépôts homonymes) — l'erreur réelle est affichée en cas d'échec. Une app installée via Flatpak apparaît immédiatement dans le launcher du bureau : ses entrées `.desktop` et ses icônes sont liées dans `~/.local/share/applications` et `~/.local/share/icons` (les dossiers XDG scannés par **tout** environnement : wofi, GNOME, KDE…), exactement comme une installation pacman, et retirées à la désinstallation. La recherche affiche le statut réel de chaque app (Installé / Mise à jour disponible). Le tout est couvert par un **test d'intégration** qui pilote le vrai CLI flatpak (install, liste, mise à jour, recherche, désinstallation). Pour ajouter un autre gestionnaire (apt, dnf, zypper, ou les dépôts d'une autre distro) sans toucher à l'application :
|
||||
|
||||
1. Implémentez `IPackageManager` dans un fichier `.cpp` (copiez `plugins/example-provider/example-provider.cpp` comme modèle).
|
||||
2. Exportez le contrat C ABI avec la macro `FWS_PROVIDER_PLUGIN(MyManager, "id", "Nom", "1.0.0", "Description", "Auteur")`.
|
||||
@@ -152,6 +152,18 @@ cmake -B build -DFWS_BUILD_EXAMPLE_PLUGIN=ON && cmake --build build
|
||||
|
||||
Le plugin doit être compilé avec le même compilateur et les mêmes en-têtes que l'application (comme un plugin Qt classique).
|
||||
|
||||
## Développement & conventions
|
||||
|
||||
Ce projet suit les conventions de l'organisation **FWS**, détaillées dans `AGENTS.md` :
|
||||
|
||||
- **Branches** : `type/description` (ex. `feat/login`, `fix/typo`).
|
||||
- **Commits** : message en **anglais**, format **Conventional Commits** `<type>(<portée>): <description>`. Types autorisés : `feat`, `fix`, `docs`, `style`, `refactor`, `perf`, `test`, `build`, `ci`, `chore`, `revert`. Titre court et impératif ; le corps n'explique que le **pourquoi**.
|
||||
- **Fichiers** : `kebab-case` ; identifiants (variables, fonctions, classes) en **anglais**.
|
||||
- **Code & commentaires** : en **anglais**, style « pourquoi » (documenter le non-évident — choix d'implémentation, trade-offs —, pas le banal).
|
||||
- **Tests** : fichiers `*.test.*` avec noms `describe` / `it` en anglais ; les tests (et le typecheck / lint quand ils existent) doivent passer avant de considérer une tâche terminée. Lancez-les avec `ctest` depuis `build/`.
|
||||
- **Issues & bugs** : suivis via les **issues** liées au tableau **Kanban** ; toute PR corrigeant un bug référence l'issue (`Fixes #123`) ; ne pas fermer ni modifier une issue sans demande explicite.
|
||||
- **Fichiers sensibles (`.gitignore`)** : ne jamais committer `.env*`, `.freebuff/`, `build/` / `dist/` / `target/` / `__pycache__/`, `node_modules/`, secrets. Un `.gitignore` existe à la racine du repo.
|
||||
|
||||
## Licence
|
||||
|
||||
Coming soon
|
||||
Reference in new issue
Block a user