3 releases

0.1.2 Jan 20, 2021
0.1.1 Jan 18, 2021
0.1.0 Jan 16, 2021

#532 in Operating systems

MPL-2.0 license

22KB
416 lines

werb

Yet another rusty package manager


Install

You can either:

  • Run cargo install werb
  • Download the binary in the releases

You must add $HOME/.werb_bin to path to have direct access to your installed packages

How to use

Setup

  • Run werb to update your sources and setup the environnement

Search packages

  • Run werb search <package> to check if your package exists

Install packages

  • Run werb install <package> [-f | --force] to install it in ~/.werb_bin

Uninstall packages

  • Run werb purge <package> to uninstall it

Publish packages

NOTE: All the published packages has to be in a single tar.gz file !

Adding a new package

WARNING: If you just want to UPDATE an existing package, go to the editing section

  • Prerequisties: You have to have ruby installed

  • Fork this repository

  • Clone the produced repository with: git clone git@github.com:$USERNAME/werb.git (obviously replace $USERNAME with your github username)

  • Run cd werb/ && chmod 751 add_package.rb

  • Follow the script instructions

  • Commit your changes with this message: :package: Added $PACKAGE_NAME package (obviously replace $PACKAGE_NAME with your package name)

  • Push your changes to your repo

  • Open a pull request on this repository with this title: [PACKAGE] Added $PACKAGE_NAME (obviously replace $PACKAGE_NAME with your package name)

  • Your package should be accepted within one day

Edit an existing package
  • Fork this repository

  • Clone the produced repository with: git clone git@github.com:$USERNAME/werb.git (obviously replace $USERNAME with your github username)

  • Go in the produced directory

  • Edit packages.json with your changes

  • Commit your changes with this message: :package: Edited $PACKAGE_NAME package (obviously replace $PACKAGE_NAME with your package name)

  • Push your changes to your repo

  • Open a pull request on this repository with this title: [PACKAGE] Edited $PACKAGE_NAME (obviously replace $PACKAGE_NAME with your package name)

  • Your package should be updated within one day

Dependencies

~6–22MB
~311K SLoC