cargo-open icon indicating copy to clipboard operation
cargo-open copied to clipboard

Allows running stand-alone (WIP)

Open kbknapp opened this issue 9 years ago • 1 comments

DO NOT MERGE

This small change allows running cargo-open standalone as well as as a subcommand of cargo...well, almost.

Running cargo open <crate> works as expected. Running cargo-open <crate> also works...but not quite as expected. The problem is $CARGO_HOME isn't set when cargo doesn't run. (Also note, cargo-open or cargo open without a crate still spits out the required error messages :wink:)

If you know of a way to cleanly set $CARGO_HOME (to include when users are using multirust) it should be as simple as setting that variable. I'm just not familiar enough with cargo (yet) to set it manually.

Overall this would make hacking on cargo-open a little easier/faster. So if it's something you'd like to pursue I'll keep looking for something that'll work :smile:

kbknapp avatar Oct 06 '15 18:10 kbknapp

This is awesome! I'll take a look at how to get CARGO_HOME soon :)

carols10cents avatar Oct 07 '15 03:10 carols10cents