<div dir="ltr">Hi Andreas,<div><br></div><div style>This sounds like a good idea to me. The reason things are (possibly) as they are at the moment is that is how it appeared to us when we were rewriting Juju in Go. That is not to say the status quo is acceptable. Please raise this as an issue.</div>
<div style><br></div><div style>Cheers</div><div style><br></div><div style>Dave</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jun 1, 2013 at 1:10 AM, Andreas Hasenack <span dir="ltr"><<a href="mailto:andreas@canonical.com" target="_blank">andreas@canonical.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>While trying to find out all the possible command line options for the tools (like relation-get, relation-set, etc), it dawned on me that the --help option is basically unusable.</div>
<div><br></div><div>Here are the reasons:</div><div>- the tools are not packaged, so they don't get installed when you apt-get install juju-core</div><div>- the tools also don't get placed in $GOPATH/bin/ when you build from source. You have to manually symlink jujud to each tool name</div>
<div>- even if they were installed, they don't work outside of a juju unit as they require a *running* jujud for anything, even --help</div><div>- you can't run tools interactively on a deployed unit, again, because they are outside of a juju context or environment</div>
<div>- there is no debug-hook as there was in pyjuju, so you can't run them in that debug context either</div><div><br></div><div>It's silly, but the only way to get --help output from a tool is to:</div>
<div>- add <tool> --help to some hook in a charm</div><div>- deploy said charm</div><div>- inspect charm logs looking for the --help output</div><div><br></div><div>Niemeyer suggested something like this: juju help-tool <tool-name></div>
<div><br></div><div>In that way, you can get the help output locally on your box with the packaged version of juju-core.</div><div><br></div><div>In the absense of manpages for the tools, this would help a lot already.</div>
<div><br></div></div>
<br>--<br>
Juju-dev mailing list<br>
<a href="mailto:Juju-dev@lists.ubuntu.com">Juju-dev@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju-dev</a><br>
<br></blockquote></div><br></div>