https://doc.rust-lang.org/cargo/reference/registries.html
This is temporary, the environment variables can be set manually but optimally should be done on installation of the package manager
From this directory(comline-rs/, be sure you are here) in console, make an alias to the executable:
- Fish:
set COMLINE_HOME=~/.config/comline" - Bash:
COMLINE_HOME=~/.config/comline(might be wrong, didn't test)
You can check if it's working by doing echo $COMLINE_HOME
cargo install --path . --offline
If installing doesn't work well while developing, check below how to alias directly to a debug build temporarily (duration of shell's process live)
This is a very temporary alias for development (which might just easily break), since we need to use the package manager sometimes, lets do an alias:
From this directory(comline-rs/, be sure you are here) in console, make an alias to the executable:
- Fish:
alias comline-dev="\"$(pwd)/target/debug/comline-package-manager\"" - Bash:
alias comline-dev="\"$PWD/target/debug/comline-package-manager\""(might be wrong, didn't test)
Now the command comline-dev is available
comlinepm login --method=<ssh|github|...> --username= --password=<optional<password|token>>