[UG] Add filters to the 'fuel2 task list' command

Change-Id: Idab2a7912af7d28f5b79a1aaab4d60f658511fe0
Closes-Bug: #1640224
This commit is contained in:
OlgaGusarenko 2016-11-15 12:59:37 +02:00
parent a14aa9fcbc
commit 0931fcf0a5
3 changed files with 29 additions and 0 deletions

View File

@ -19,6 +19,8 @@ deployment.
fuel task
fuel2 task list
.. include:: /userdocs/snippets/notes/fuel2-task-list-filters.rst
#. Download the deployment information:
.. code-block:: console

View File

@ -35,6 +35,8 @@ the Fuel web UI (timeline or table view mode) as well as the Fuel CLI.
fuel task
fuel2 task list
.. include:: /userdocs/snippets/notes/fuel2-task-list-filters.rst
#. Get the information on deployment tasks running on nodes:
.. code-block:: console

View File

@ -0,0 +1,25 @@
.. note::
By default, the :command:`fuel2 task list` shows all deployment tasks.
Although, you can filter the tasks in the command output by:
* Environment ID:
.. code-block:: console
fuel2 task list --env <ENV_ID>
* Tasks statuses:
.. code-block:: console
fuel2 task list --statuses ready
The available tasks statuses are ``pending``, ``error``,
``ready``, and ``running``.
* Tasks names:
.. code-block:: console
fuel2 task list --names <TASK_NAME>