Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hasauino/coenv

A tool (bash script) for fast installation and activation of conan packages, with auto-complete
https://github.com/hasauino/coenv

conan conan-tools

Last synced: 21 days ago
JSON representation

A tool (bash script) for fast installation and activation of conan packages, with auto-complete

Awesome Lists containing this project

README

        

# coenv

coenv is a tool to install a conan package and source/activate it's conan run environment in one shot.
Packages can be local, or remote.

:white_check_mark: Fast auto-completion for local/remote package names.

:white_check_mark: [conan](https://conan.io/) 2 (Linux only)

:white_check_mark: conan 1, (check [conan 1](https://github.com/hasauino/coenv/tree/conan_1) branch).

It can be really handy for conan packages that include executables and you want to quickly run them.

![](imgs/demo2.gif)

## Install :rocket:

- Copy and run the following command.

```bash
curl "https://raw.githubusercontent.com/hasauino/coenv/conan_2/coenv" --create-dirs -o /home/${USER}/.coenv/coenv && printf "\n# Add coenv command\n. /home/$USER/.coenv/coenv" >> ~/.bashrc && source ~/.bashrc
```

- Use `coenv` :wink: (check examples)

## Examples

1. Install and activate (conan virtualenv) a package:

![](imgs/demo2.gif)

2. Install a package that appends an executable to `PATH` :

![](imgs/demo3.gif)

## Remote packages

- `coenv` will search local package only for auto-complete suggestions. To make it also show remote packages, you need to run:

```bash
coenv update
```

this will update `~/.coenv/index` text file that holds all remote package names. You need to run it every now and then if needed! (it's optional)

![](imgs/demo1.gif)