Skip to content

erg-lang/poise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

poise

The Erg package manager

This package manager is bundled with erg and is available via the erg pack subcommand. See here for information on how to use the command.

Requirements

  • Git
  • Github CLI (if you want to publish packages)

Bootstrap

erg src/main.er -- install

Alternatively, you can use ergup to install poise automatically.

Usage

Actually, poise is inspired by cargo (Rust's package manager) and has almost the same command options.

Create a new package

  • Creating a new package in the current directory
erg pack init
  • Making a new directory and creating a package
erg pack new package_name

Build a package

This generates the artifacts in the build directory.

erg pack build

Check a package

This does not generate the artifacts.

erg pack check

Run a package

erg pack run

Test a package

This runs the test subroutines (named with test_ prefix) in the tests directory.

erg pack test

Publish a package

This publishes the package to the registry.

erg pack publish

Install a package

  • Install the package from the current directory
erg pack install
  • Install the package from the registry
erg pack install package_name

Uninstall a package

  • Uninstall the package from the current directory
erg pack uninstall
  • Uninstall the package by specifying the name
erg pack uninstall package_name

Update dependencies

erg pack update

Display the package information

erg pack metadata
  • Display the package information with json format
erg pack metadata --format json

Clean the build directory

erg pack clean