Add OpenSpec for declpac CLI tool

- OpenSpec for declarative pacman package management
- stdin and --state file inputs with merging
- Full system upgrades, transitive deps, orphan cleanup
- AUR support with pacman/makepkg fallback
- Machine-readable output for scripting
This commit is contained in:
AI Bot
2026-04-13 15:42:35 +02:00
committed by Riyyi
parent cb3936c42a
commit 6699c62d9e
14 changed files with 443 additions and 1 deletions
@@ -0,0 +1,17 @@
## ADDED Requirements
### Requirement: Can read package lists from stdin
The system SHALL accept package names from standard input, where each line represents a package name.
#### Scenario: Packages from stdin are read correctly
- **WHEN** package names are passed via stdin separated by whitespace, tabs, or newlines
- **THEN** system shall parse each unique package name from the input stream
#### Scenario: Empty stdin input is handled
- **WHEN** stdin contains no package names
- **THEN** system shall skip stdin input processing
#### Scenario: Whitespace normalization
- **WHEN** packages are separated by multiple spaces, tabs, or newlines
- **THEN** each package name shall have leading/trailing whitespace trimmed