add command
Add a dependency to the fobos, resolved through the package indexes (the fobos gets its URL).
bash
fobis add NAME|INDEX:NAME|URL [options]How to use it, with examples: Packages and indexes.
All options
Arguments: PACKAGE
| Option | Value | Default | Description |
|---|---|---|---|
--module | TEXT | Add the package providing this module. | |
--as | TEXT | Name of the dependency in the fobos. | |
--semver | TEXT | Version range (default: ^ the newest). | |
--tag | TEXT | Pin a tag. | |
--rev | TEXT | Pin a commit. | |
--branch | TEXT | Follow a branch. | |
--use | TEXT | sources (compiled with yours, default) or fobos (built apart). | |
--mode, -m | TEXT | Mode of the dependency's fobos (use=fobos). | |
--dev | A test-only dependency. | ||
--force | Replace an existing dependency of that name. | ||
--fobos, -f | TEXT | fobos | The fobos to edit. |
--fpm | Edit fpm.toml (the default when the project has one and no fobos). | ||
--config | TEXT | User configuration file (default ~/.config/fobis/config.ini). | |
--depth | INTEGER | 2 | How far 'follows' is walked (0: configured indexes only). |
--refresh | Fetch the indexes again instead of using the cache. | ||
--json | Machine-readable output. |