summaryrefslogtreecommitdiff
path: root/doc/source/cli/command-objects/keypair.rst
diff options
context:
space:
mode:
authorEric Fried <openstack@fried.cc>2019-11-04 16:02:31 -0600
committerEric Fried <openstack@fried.cc>2019-11-05 07:09:05 -0600
commitc6266b5ab22b911ae7e0ca5077d0c04a23dabca9 (patch)
tree8e2f4ff670b4b272184ecc877cd9838b5ad4873b /doc/source/cli/command-objects/keypair.rst
parentda56b8f4cf15cc5a77249b680dd0c4d05137be9a (diff)
downloadpython-openstackclient-c6266b5ab22b911ae7e0ca5077d0c04a23dabca9.tar.gz
compute: autogenerate docs
$namespace = openstack.compute.v2 The subcommand documents for $namespace were hardcoded and thus prone to drift over time. This commit removes the hardcoded content and uses the autoprogram-cliff directive to generate them automatically from the subcommand configuration classes. Many of these were already being generated. Some were missing a few sub-subcommands, so those are added. Change-Id: I1aa4b2655bafd2f6a5d83b658742f65d180eb128
Diffstat (limited to 'doc/source/cli/command-objects/keypair.rst')
-rw-r--r--doc/source/cli/command-objects/keypair.rst71
1 files changed, 2 insertions, 69 deletions
diff --git a/doc/source/cli/command-objects/keypair.rst b/doc/source/cli/command-objects/keypair.rst
index a539f0a2..f8bce375 100644
--- a/doc/source/cli/command-objects/keypair.rst
+++ b/doc/source/cli/command-objects/keypair.rst
@@ -9,72 +9,5 @@ command.
Compute v2
-keypair create
---------------
-
-Create new public or private key for server ssh access
-
-.. program:: keypair create
-.. code:: bash
-
- openstack keypair create
- [--public-key <file> | --private-key <file>]
- <name>
-
-.. option:: --public-key <file>
-
- Filename for public key to add. If not used, creates a private key.
-
-.. option:: --private-key <file>
-
- Filename for private key to save. If not used, print private key in
- console.
-
-.. describe:: <name>
-
- New public or private key name
-
-keypair delete
---------------
-
-Delete public or private key(s)
-
-.. program:: keypair delete
-.. code:: bash
-
- openstack keypair delete
- <key> [<key> ...]
-
-.. describe:: <key>
-
- Name of key(s) to delete (name only)
-
-keypair list
-------------
-
-List key fingerprints
-
-.. program:: keypair list
-.. code:: bash
-
- openstack keypair list
-
-keypair show
-------------
-
-Display key details
-
-.. program:: keypair show
-.. code:: bash
-
- openstack keypair show
- [--public-key]
- <key>
-
-.. option:: --public-key
-
- Show only bare public key paired with the generated key
-
-.. describe:: <key>
-
- Public or private key to display (name only)
+.. autoprogram-cliff:: openstack.compute.v2
+ :command: keypair *