title: Task triggered by run
body: <p>If in my <code>build.sbt</code> I have the following code:
  </p>
  
  <pre><code>val example = TaskKey[Unit]("example")
  example := Def.task[Unit] {
    streams.value.log.info("EXAMPLE")
  }.triggeredBy(compile in Compile).value
  </code></pre>
  
  <p>When I execute <code>~ compile</code>, whenever a source changes I'll see in the console <code>EXAMPLE</code>.</p>
  
  <p><strong>How to get the same behavior for <code>~ run arg1 arg2</code>?</strong></p>
  
  <p>The difficulty I'm having in implementing this is because <code>run</code> is an <code>InputKey</code> as opposed to <code>compile in Compile</code> which is a <code>TaskKey</code>.</p>