juju run: relation context

This adds the ability to specify a --relation context with juju run.

     juju run --unit=haproxy/0 --relation=cache “hooks/cache-relation-changed”

Review at http://reviews.vapour.ws/r/15/
On Tue, Sep 9, 2014 at 9:12 PM, Wayne Witzel III <notifications@github.com>
wrote:

> In cmd/juju/run.go:
>
> > @@ -21,13 +21,15 @@ import (
> >  // RunCommand is responsible for running arbitrary commands on remote machines.
> >  type RunCommand struct {
> >  	envcmd.EnvCommandBase
> > -	out      cmd.Output
> > -	all      bool
> > -	timeout  time.Duration
> > -	machines []string
> > -	services []string
> > -	units    []string
> > -	commands string
> > +	out        cmd.Output
> > +	all        bool
> > +	timeout    time.Duration
> > +	machines   []string
> > +	services   []string
> > +	units      []string
> > +	relation   []string
>
> will become string type, single value, so will stay relation
>

Excellent. Win!

> —
> Reply to this email directly or view it on GitHub
> <https://github.com/juju/juju/pull/705/files#r17294043>.
>