Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: Add REPL package mode command #49

Open
marius311 opened this issue Aug 18, 2022 · 3 comments
Open

FR: Add REPL package mode command #49

marius311 opened this issue Aug 18, 2022 · 3 comments

Comments

@marius311
Copy link

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
@oxinabox
Copy link
Member

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

@marius311
Copy link
Author

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.

@oxinabox
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants