Bifrost is a package management system for the Odin programming language, allowing developers to easily manage dependencies in their Odin projects.
- Install packages from git repositories
- Manage package versions
- Resolve dependencies
- Create and publish packages
Simply run the installation script:
./install.shThis will:
- Build Bifrost from source
- Install it to
~/.local/bin/bifrost - Make it globally available if
~/.local/binis in your PATH
- Clone this repository:
git clone https://github.com/yourusername/bifrost.git
cd bifrost- Build from source:
./build.sh- Add the binary to your PATH (optional):
sudo cp build/bifrost /usr/local/bin/To enable command completion for Bifrost, run:
source ./completion.shTo make completion available permanently, add this line to your .bashrc or .zshrc:
source /path/to/bifrost/completion.shbifrost initThis creates a bifrost.json file in your project's root directory.
bifrost add odin-lang/OdinThis adds the dependency to your bifrost.json file and installs it to the packages directory.
bifrost installbifrost remove odin-lang/Odinbifrost updatebifrost listBifrost uses a bifrost.json file to track dependencies and configuration for your project:
{
"name": "my-project",
"version": "0.1.0",
"description": "My Odin project",
"author": "Your Name",
"license": "MIT",
"dependencies": {
"odin-lang/Odin": "latest"
}
}To remove Bifrost, run:
./uninstall.shSee the examples directory for usage examples.
MIT
