TestEnv.jl icon indicating copy to clipboard operation
TestEnv.jl copied to clipboard

FR: Add REPL package mode command

Open marius311 opened this issue 3 years ago • 3 comments

I think you can hook into / modify the package mode REPL, so it would be pretty awesome if I could put TestEnv in my startup.jl then have:

pkg> activate --test

or

pkg> activate --test Foo

marius311 avatar Aug 18 '22 05:08 marius311

that would be cool. No idea if it is possible.

oxinabox avatar Aug 31 '22 13:08 oxinabox

I did a tiny bit of digging, for an example how to add a new package command, see this

However, to add an option (--test) to an existing command (activate), would require overwriting the existing registered command here. Definitely possible, if slightly hacky. Maybe I'll hack on it more if I find the time, but in the meantime maybe this is useful to someone.

marius311 avatar Aug 31 '22 16:08 marius311

maybe easier is to add a new pkgmode command ] activate-test?

oxinabox avatar Oct 28 '22 17:10 oxinabox