Fixing "juju help commands"

Nate Finch nate.finch at canonical.com
Wed May 25 18:52:19 UTC 2016


+1 ... one and only one way to do something is a lot easier to understand.
Either we like juju list-foos or we like juju foos... pick one and move
on.  This feels like two camps agreed to disagree and just kept both.

On Wed, May 25, 2016 at 10:12 AM Katherine Cox-Buday <
katherine.cox-buday at canonical.com> wrote:

>
> I think this has come up before on this list, but: isn't having 2 sets of
> commands in the first place a design smell? If we need aliases because
> users aren't using the originals, then  shouldn't we fix the original
> commands?
>
> Tim Penhey <tim.penhey at canonical.com> writes:
>
> > On 25/05/16 00:12, Marco Ceppi wrote:
> >> Even if you don't expect people to run them, hidding them seems
> >> awkward.
> >> Better to simply educate with good help output about what the
> >> command
> >> does and when/why use the command.
> >
> > Was thinking, perhaps it would be better to have a feature flag to use
> > the "hidden" commands instead of the ability to hide commands.
> >
> > If you set the feature flag, you get the additional commands, and they
> > show up in help etc.  That way a way to get users to run them could be
> > something like:
> >
> >   JUJU_FEATURE_FLAGS=dev-debug juju dump-model
> >
> > or something like that.
> >
> > Tim
>
> --
> Katherine
>
> --
> 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/20160525/702cf15e/attachment.html>


More information about the Juju-dev mailing list