You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4f1ebe8
Browse filesBrowse the repository at this point in the historyBrowse files
Dean Troyer
committed
Update docs for plugins and release notes
* Fill out the existing command and man page
* Add a plugins page.
* Begin the release notes for 0.3.0
Change-Id: I4527fed28a10a9d79fc8f6c1d925a4bf0d0a7a36
* All long options names begin with two dashes ('--') and use a single dash ('-') internally between words (--like-this)
15
+
* All long options names begin with two dashes ('--') and use a single dash
16
+
('-') internally between words (--like-this). Underscores ('_') are not used
17
+
in option names.
16
18
17
19
18
20
Global Options
19
21
--------------
20
22
21
-
Global options are global in the sense that the apply to every command invocation regardless of action to be performed. This includes authentication credentials and API version selection. Most global options have a corresponding environment variable that may also be used to set the value. If both are present, the command-line option takes priority. The environment variable names are derived from the option name by dropping the leading dashes ('--'), converting each embedded dash ('-') to an underscore ('_'), and converting to upper case.
23
+
Global options are global in the sense that they apply to every command
24
+
invocation regardless of action to be performed. They include authentication
25
+
credentials and API version selection. Most global options have a corresponding
26
+
environment variable that may also be used to set the value. If both are
27
+
present, the command-line option takes priority. The environment variable
28
+
names are derived from the option name by dropping the leading dashes ('--'),
29
+
converting each embedded dash ('-') to an underscore ('_'), and converting
30
+
to upper case.
22
31
23
32
For example, ``--os-username`` can be set from the environment via ``OS_USERNAME``.
24
33
25
34
26
35
Command Object(s) and Action
27
36
----------------------------
28
37
29
-
Commands consist of an object described by one or more words followed by an action.
30
-
In commands requiring two objects be acted upon, the primary object appears ahead of the action and the secondary object appears after the action.
31
-
If both objects have cooresponding positional arguments the arguments appear in the same order as the objects. In badly formed English it is expressed as "(Take) object1 (and perform) action (using) object2 (to it)."
38
+
Commands consist of an object described by one or more words followed by
39
+
an action. Commands that require two objects have the primary object ahead
40
+
of the action and the secondary object after the action. Any positional
41
+
arguments identifying the objects shall appear in the same order as the
42
+
objects. In badly formed English it is expressed as "(Take) object1
43
+
(and perform) action (using) object2 (to it)."
32
44
33
45
::
34
46
@@ -44,22 +56,23 @@ Examples::
44
56
Command Arguments and Options
45
57
-----------------------------
46
58
47
-
Commands have their own set of options distinct from the global options. They follow the
48
-
same style as the global options and always appear between the command and any positional arguemnts the command may require.
59
+
Each command may have its own set of options distinct from the global options.
60
+
They follow the same style as the global options and always appear between
61
+
the command and any positional arguments the command requires.
49
62
50
63
51
64
Implementation
52
65
==============
53
66
54
-
The command structure is designed to support seamless addition of extension
55
-
command modules via entry points. The extensions are assumed to be subclasses
56
-
of Cliff's command.Command object.
67
+
The command structure is designed to support seamless addition of plugin
68
+
command modules via ``setuptools`` entry points. The plugin commands must
69
+
be subclasses of Cliff's command.Command object.
57
70
58
71
59
72
Command Entry Points
60
73
--------------------
61
74
62
-
Commands are added to the client using setuptools's entry points in ``setup.cfg``.
75
+
Commands are added to the client using ``setuptools`` entry points in ``setup.cfg``.
63
76
There is a single common group ``openstack.cli`` for commands that are not versioned,
64
77
and a group for each combination of OpenStack API and version that is
65
78
supported. For example, to support Identity API v3 there is a group called
0 commit comments