A package manager for the C3 programming language that automates dependency installation and project configuration.
Built with the seali CLI framework.
- Install C3 libraries directly from GitHub repositories
- Automatic
project.jsondependency management - Transitive dependency resolution via
manifest.json - Duplicate dependency detection
- C3 compiler (c3c)
- Git
c3c buildThe executable will be at build/c3po.
c3po <COMMANDS>
Commands:
add Install a lib
Install a library from a GitHub repository:
c3po add <owner/repo>Example:
c3po add Ecoral360/sealiThis will:
- Clone
https://github.com/Ecoral360/sealiintolib/seali.c3l/ - Read the library's
manifest.jsonto resolve its name and sub-dependencies - Update your
project.jsondependencies list - Recursively install any transitive dependencies declared in
vendor.c3po
Libraries installed by c3po should include a manifest.json:
{
"provides": "library_name",
"vendor": {
"c3po": [
{ "source": "owner/repo" }
]
}
}provides— the library name to register inproject.jsondependenciesvendor.c3po— optional list of transitive dependencies to install
c3po/
├── src/
│ ├── main.c3 # CLI commands and dependency management
│ ├── json.c3 # JSON parser
│ └── text.c3 # ANSI color formatting utilities
├── lib/ # Installed dependencies
├── project.json # C3 project configuration
└── build/ # Compiled output