Fixing "juju help commands"

Tim Penhey tim.penhey at canonical.com
Tue May 24 08:41:30 UTC 2016


Hidden would be a primitive defined in the github.com/juju/cmd package, 
whereas the "blockable" consideration is an implementation detail of 
juju commands.

I don't think we should specify them the same way.

However, that doesn't mean that Juju shouldn't have a base blockable 
command which the commands that could be blocked would use.  Just a thought.

Tim

On 24/05/16 16:31, Anastasia Macmood wrote:
> Tim
>
> If you are adding the ability to specify commands as "hidden", we may
> greatly benefit from specifying commands as "blockable" too....
>
> Sincerely Yours,
>
> Anastasia
>
> On 24/05/16 14:19, Tim Penhey wrote:
>> Hi folks,
>>
>> More from the "let's fix the output" school of thought.
>>
>> One thing that has bugged me about 'juju help commands' was the
>> repeated mentions of "alias for <blah>".
>>
>> I propose that we don't show aliases by default, and allow the user to
>> task for them.
>>
>> Also, the supercommand describe commands method was written before I
>> knew about the tabular output, so some code could be cleaned up there.
>>
>> Proposal:
>>
>> juju help commands
>>    - shows the commands that are neither aliases, nor hidden
>> juju help commands --alias
>>    - shows either just the aliases, or everything including aliases
>> juju help commands --all
>>    - shows basic commands, aliases and hidden commands.
>>
>> I'd like to add the ability to say a command is hidden so it doesn't
>> show up in the commands list. The purpose for these could be debugging
>> assisting type functions, like "dump-model" or "debug-controller" (two
>> commands that don't yet exist).
>>
>> Thoughts?
>>
>> Tim
>>
>



More information about the Juju-dev mailing list