Steve Cooper
Steve Cooper

Reputation: 21470

Invoke an intelliJ run/debug configuration from command line?

I've got some Run/Debug Configurations defined in my JetBrains IDE, and to run them obviously you'd normally press the green 'play' icon;

run/debug configuration

However, I want to combine that with scripts I've got on my machine which detect file system changes and re-run some validation steps in the background;

cargo watch

Now what I'd like to do is to say something like 'when the CLI detects that something is stale, start the run/debug configuration in the IDE'.

So in pseudo-bash, something like

# if any "*.rs" file changes, press the green button in intellij;
watch-files *.rs -x "run-intellij-config 'check controlplane'

Is it possible to invoke tasks within IntelliJ like this?

Upvotes: 1

Views: 952

Answers (1)

lena
lena

Reputation: 93728

There is no way to do this currently, please vote for IDEA-157076 to be notified on any progress with this feature request

Upvotes: 3

Related Questions