there is no show-action command to learn how to use an action from the cli

Bug #1596906 reported by Richard Harding
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Medium
Ian Booth

Bug Description

When looking at actions I can see the list with

  juju actions percona-cluster
  backup Full database backup
  pause Pause the MySQL service.
  resume Resume the MySQL service.

However, I can't figure out how to use an action just as backup in this case.

I'd like to have an option to show an action to get details about it.

  juju show-action percona-cluster backup
  description: Full database backup
  params:
    basedir:
      type: string
      default: "/opt/backups/mysql"
      description: The base directory for backups
    compress:
      type: boolean
      default: false
      description: Whether or not to compress the backup
    incremental:
      type: boolean
      default: false
      description: Make an incremental database backup

Tags: usability 2.0
Changed in juju-core:
milestone: none → 2.0.0
affects: juju-core → juju
Changed in juju:
milestone: 2.0.0 → none
milestone: none → 2.0.0
Curtis Hovey (sinzui)
Changed in juju:
milestone: 2.0.0 → 2.0.1
Curtis Hovey (sinzui)
Changed in juju:
milestone: 2.0.1 → none
Revision history for this message
Joseph Borg (joeborg) wrote :

+1 on this, it's currently not easy to show users the defaults from `actions.yaml` without dumping the whole file with `--schema --format json` and gripping with `jq`.

Tim Penhey (thumper)
Changed in juju:
milestone: none → 2.6-beta1
Changed in juju:
milestone: 2.6-beta1 → 2.6-beta2
Changed in juju:
milestone: 2.6-beta2 → 2.6-rc1
Changed in juju:
milestone: 2.6-rc1 → 2.6-rc2
Changed in juju:
milestone: 2.6-rc2 → 2.6.1
Changed in juju:
milestone: 2.6.1 → 2.6.2
Changed in juju:
milestone: 2.6.2 → 2.6.3
Changed in juju:
milestone: 2.6.3 → 2.6.4
Changed in juju:
milestone: 2.6.4 → 2.6.5
Changed in juju:
milestone: 2.6.5 → 2.6.6
Changed in juju:
milestone: 2.6.6 → 2.6.7
Changed in juju:
milestone: 2.6.7 → 2.7-beta1
Changed in juju:
milestone: 2.7-beta1 → 2.7-rc1
Revision history for this message
Richard Harding (rharding) wrote :

There is a show-action command now and other improvements to the actions UX (and changes coming in prep of 3.0)

Changed in juju:
status: Triaged → Fix Committed
assignee: nobody → Ian Booth (wallyworld)
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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