LoopPerfect / buckaroo

The decentralized package manager for C++ and friends 🏝️
https://buckaroo.pm
MIT License
935 stars 33 forks source link

Add --location option to add for ad-hoc dependencies #328

Open njlr opened 5 years ago

njlr commented 5 years ago

Currently the user must edit the TOML manually.

This is OK, but we should also support this in the CLI.

For example, this command:

buckaroo add owner/project@branch=master --location git@url/to/git/repo.git

Would generate this TOML:

[[location]]
package = "owner/project"
git = "git@url/to/git/repo.git"

[[dependency]]
package = "owner/project"
version = "branch=master"

The exact syntax is still up for grabs.