help text for juju needs improving

Bug #1568862 reported by Peter Matulis
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Medium
Reed O'Brien

Bug Description

This text should appear with `juju help`.

e.g.:

Usage: juju [help] <command>

Summary:
Juju is model & service management software designed to leverage the power of existing resource pools, particularly cloud-based ones. It has built-in support for cloud providers such as Amazon EC2, Google GCE, Microsoft Azure, OpenStack, and Rackspace. It also works very well with MAAS and LXD. Juju allows for easy installation and management of workloads on a chosen resource pool.

See https://jujucharms.com/docs/stable/help for documentation.

Common commands:

    add-credential Adds or replaces credentials for a cloud.
    add-relation Adds a relation between two services.
    add-unit Adds extra units of a deployed service.
    add-user Adds a Juju user to a controller.
    bootstrap Initializes a cloud environment.
    create-model Creates a hosted model.
    deploy Deploys a new service.
    expose Makes a service publicly available over the network.
    list-controllers Lists all controllers.
    list-models Lists models a user can access on a controller.
    status Displays the current status of Juju, services, and units.
    switch Selects or identifies the current controller and model.

Example help commands:

    `juju help` This help page
    `juju help commands` Lists all commands
    `juju help deploy` Shows help for command 'deploy'

Tags: helpdocs
description: updated
Changed in juju-core:
status: New → Triaged
importance: Undecided → Medium
milestone: none → 2.0.0
Changed in juju-core:
milestone: 2.0.0 → 2.0-rc1
Revision history for this message
Reed O'Brien (reedobrien) wrote :

This has a multi line summary. I imagine this will be broken up to have a single line summary and the rest placed under details. Also it looks at a glance like the commands and options are dynamically generated. So they will appear regardless -- unless we rewrite how the command works.

Please advise.

Revision history for this message
Nick Veitch (evilnick) wrote : Re: [Bug 1568862] Re: help text for juju needs improving

I'm not entirely sure how the current help is generated, but it doesn't
have any headings etc. Can the summary be blank?
We can skip off the Summary heading too, and just have all that text in the
body so the output looks like:

"
  Usage: juju [help] <command>

Juju is model & service management software designed to leverage the power
of existing resource pools, particularly cloud-based ones. It has built-in
support for cloud providers such as Amazon EC2, Google GCE, Microsoft
Azure, OpenStack, and Rackspace. It also works very well with MAAS and LXD.
Juju allows for easy installation and management of workloads on a chosen
resource pool.

"

On 14 April 2016 at 00:33, Reed O'Brien <email address hidden> wrote:

> This has a multi line summary. I imagine this will be broken up to have
> a single line summary and the rest placed under details. Also it looks
> at a glance like the commands and options are dynamically generated. So
> they will appear regardless -- unless we rewrite how the command works.
>
> Please advise.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1568862
>
> Title:
> help text for juju needs improving
>
> Status in juju-core:
> Triaged
>
> Bug description:
> This text should appear with `juju help`.
>
> e.g.:
>
> Usage: juju [help] <command>
>
> Summary:
> Juju is model & service management software designed to leverage the
> power of existing resource pools, particularly cloud-based ones. It has
> built-in support for cloud providers such as Amazon EC2, Google GCE,
> Microsoft Azure, OpenStack, and Rackspace. It also works very well with
> MAAS and LXD. Juju allows for easy installation and management of workloads
> on a chosen resource pool.
>
> See https://jujucharms.com/docs/stable/help for documentation.
>
> Common commands:
>
> add-credential Adds or replaces credentials for a cloud.
> add-relation Adds a relation between two services.
> add-unit Adds extra units of a deployed service.
> add-user Adds a Juju user to a controller.
> bootstrap Initializes a cloud environment.
> create-model Creates a hosted model.
> deploy Deploys a new service.
> expose Makes a service publicly available over the
> network.
> list-controllers Lists all controllers.
> list-models Lists models a user can access on a controller.
> status Displays the current status of Juju, services, and
> units.
> switch Selects or identifies the current controller and
> model.
>
> Example help commands:
>
> `juju help` This help page
> `juju help commands` Lists all commands
> `juju help deploy` Shows help for command 'deploy'
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/juju-core/+bug/1568862/+subscriptions
>

--
Nick Veitch,
CDO Documentation
Canonical

Changed in juju-core:
status: Triaged → In Progress
assignee: nobody → Reed O'Brien (reedobrien)
Revision history for this message
Reed O'Brien (reedobrien) wrote :

Looking into the code behind it, this command works differently than the subcommands.

Output:

Usage: juju [help] <command>

Summary:
Juju is model & service management software designed to leverage the power
of existing resource pools, particularly cloud-based ones. It has built-ini
support for cloud providers such as Amazon EC2, Google GCE, Microsoft
Azure, OpenStack, and Rackspace. It also works very well with MAAS and
LXD. Juju allows for easy installation and management of workloads on a
chosen resource pool.

See https://jujucharms.com/docs/stable/help for documentation.

Common commands:

    add-credential Adds or replaces credentials for a cloud.
    add-relation Adds a relation between two services.
    add-unit Adds extra units of a deployed service.
    add-user Adds a Juju user to a controller.
    bootstrap Initializes a cloud environment.
    create-model Creates a hosted model.
    deploy Deploys a new service.
    expose Makes a service publicly available over the network.
    list-controllers Lists all controllers.
    list-models Lists models a user can access on a controller.
    status Displays the current status of Juju, services, and units.
    switch Selects or identifies the current controller and model.

Example help commands:

    `juju help` This help page
    `juju help commands` Lists all commands
    `juju help deploy` Shows help for command 'deploy'

Revision history for this message
Reed O'Brien (reedobrien) wrote :

Sorry typo in above. Output:

Usage: juju [help] <command>

Summary:
Juju is model & service management software designed to leverage the power
of existing resource pools, particularly cloud-based ones. It has built-in
support for cloud providers such as Amazon EC2, Google GCE, Microsoft
Azure, OpenStack, and Rackspace. It also works very well with MAAS and
LXD. Juju allows for easy installation and management of workloads on a
chosen resource pool.

See https://jujucharms.com/docs/stable/help for documentation.

Common commands:

    add-credential Adds or replaces credentials for a cloud.
    add-relation Adds a relation between two services.
    add-unit Adds extra units of a deployed service.
    add-user Adds a Juju user to a controller.
    bootstrap Initializes a cloud environment.
    create-model Creates a hosted model.
    deploy Deploys a new service.
    expose Makes a service publicly available over the network.
    list-controllers Lists all controllers.
    list-models Lists models a user can access on a controller.
    status Displays the current status of Juju, services, and units.
    switch Selects or identifies the current controller and model.

Example help commands:

    `juju help` This help page
    `juju help commands` Lists all commands
    `juju help deploy` Shows help for command 'deploy'

Revision history for this message
Peter Matulis (petermatulis) wrote :

You mean the text cannot be aligned? The current (old) text is aligned (?).

Revision history for this message
Reed O'Brien (reedobrien) wrote :

I used the copy and formatting from the bug description. The bit after
"This text should appear with `juju help`.

e.g.:"

So I am not sure what you mean. Can you elaborate?

Revision history for this message
Reed O'Brien (reedobrien) wrote :

I think I understand, but would prefer not to guess.

Revision history for this message
Reed O'Brien (reedobrien) wrote :

I assume you mean like (probably won't appear aligned unless you use a fixed width font):

Usage: juju [help] <command>

Summary:
Juju is model & service management software designed to leverage the power
of existing resource pools, particularly cloud-based ones. It has built-in
support for cloud providers such as Amazon EC2, Google GCE, Microsoft
Azure, OpenStack, and Rackspace. It also works very well with MAAS and
LXD. Juju allows for easy installation and management of workloads on a
chosen resource pool.

See https://jujucharms.com/docs/stable/help for documentation.

Common commands:

    add-credential Adds or replaces credentials for a cloud.
    add-relation Adds a relation between two services.
    add-unit Adds extra units of a deployed service.
    add-user Adds a Juju user to a controller.
    bootstrap Initializes a cloud environment.
    create-model Creates a hosted model.
    deploy Deploys a new service.
    expose Makes a service publicly available over the network.
    list-controllers Lists all controllers.
    list-models Lists models a user can access on a controller.
    status Displays the current status of Juju, services, and units.
    switch Selects or identifies the current controller and model.

Example help commands:

    `juju help` This help page
    `juju help commands` Lists all commands
    `juju help deploy` Shows help for command 'deploy'

Revision history for this message
Peter Matulis (petermatulis) wrote :

When I filed the bug everything was aligned. When I try to edit everything is aligned again. So I made a screenshot:

https://private-fileshare.canonical.com/~pmatulis/doc_team/bug_1568862.png

Changed in juju-core:
status: In Progress → Fix Committed
Revision history for this message
Reed O'Brien (reedobrien) wrote :

This is aligned on my terminal... Should be on your's once it is updated...:

Usage: juju [help] <command>

Summary:
Juju is model & service management software designed to leverage the power
of existing resource pools, particularly cloud-based ones. It has built-in
support for cloud providers such as Amazon EC2, Google GCE, Microsoft
Azure, OpenStack, and Rackspace. It also works very well with MAAS and
LXD. Juju allows for easy installation and management of workloads on a
chosen resource pool.

See https://jujucharms.com/docs/stable/help for documentation.

Common commands:

    add-credential Adds or replaces credentials for a cloud.
    add-relation Adds a relation between two services.
    add-unit Adds extra units of a deployed service.
    add-user Adds a Juju user to a controller.
    bootstrap Initializes a cloud environment.
    create-model Creates a hosted model.
    deploy Deploys a new service.
    expose Makes a service publicly available over the network.
    list-controllers Lists all controllers.
    list-models Lists models a user can access on a controller.
    status Displays the current status of Juju, services, and units.
    switch Selects or identifies the current controller and model.

Example help commands:

    `juju help` This help page
    `juju help commands` Lists all commands
    `juju help deploy` Shows help for command 'deploy'

Revision history for this message
Reed O'Brien (reedobrien) wrote :

Here's a screenshot back to show the alignment.

Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
affects: juju-core → juju
Changed in juju:
milestone: 2.0-beta5 → none
milestone: none → 2.0-beta5
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.