tools' --help option barely usable

David Cheney david.cheney at canonical.com
Sun Jun 2 23:12:44 UTC 2013


Hi Andreas,

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.

Cheers

Dave


On Sat, Jun 1, 2013 at 1:10 AM, Andreas Hasenack <andreas at canonical.com>wrote:

> Hi,
>
> 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.
>
> Here are the reasons:
> - the tools are not packaged, so they don't get installed when you apt-get
> install juju-core
> - 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
> - even if they were installed, they don't work outside of a juju unit as
> they require a *running* jujud for anything, even --help
> - you can't run tools interactively on a deployed unit, again, because
> they are outside of a juju context or environment
> - there is no debug-hook as there was in pyjuju, so you can't run them in
> that debug context either
>
> It's silly, but the only way to get --help output from a tool is to:
> - add <tool> --help to some hook in a charm
> - deploy said charm
> - inspect charm logs looking for the --help output
>
> Niemeyer suggested something like this: juju help-tool <tool-name>
>
> In that way, you can get the help output locally on your box with the
> packaged version of juju-core.
>
> In the absense of manpages for the tools, this would help a lot already.
>
>
> --
> Juju-dev mailing list
> Juju-dev at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20130603/ed97cb06/attachment.html>


More information about the Juju-dev mailing list