o
odinpkg.dev
packages / library / Bifrost

Bifrost

67492f3library

No description provided.

No license · updated 1 year ago

Bifrost - Package Manager for Odin

Bifrost Logo

Bifrost is a package management system for the Odin programming language, allowing developers to easily manage dependencies in their Odin projects.

Features

  • Install packages from git repositories
  • Manage package versions
  • Resolve dependencies
  • Create and publish packages

Installation

Quick Install

Simply run the installation script:

./install.sh

This will:

  • Build Bifrost from source
  • Install it to ~/.local/bin/bifrost
  • Make it globally available if ~/.local/bin is in your PATH

From Source Manually

  1. Clone this repository:
git clone https://github.com/yourusername/bifrost.git
cd bifrost
  1. Build from source:
./build.sh
  1. Add the binary to your PATH (optional):
sudo cp build/bifrost /usr/local/bin/

Shell Completion

To enable command completion for Bifrost, run:

source ./completion.sh

To make completion available permanently, add this line to your .bashrc or .zshrc:

source /path/to/bifrost/completion.sh

Usage

Initialize a new project

bifrost init

This creates a bifrost.json file in your project's root directory.

Add a dependency

bifrost add odin-lang/Odin

This adds the dependency to your bifrost.json file and installs it to the packages directory.

Install dependencies from bifrost.json

bifrost install

Remove a dependency

bifrost remove odin-lang/Odin

Update dependencies

bifrost update

List installed packages

bifrost list

Configuration

Bifrost 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"
  }
}

Uninstallation

To remove Bifrost, run:

./uninstall.sh

Examples

See the examples directory for usage examples.

License

MIT