Skip to content

Commit

Permalink
Adds disable pager global flag and envvar (#1223)
Browse files Browse the repository at this point in the history
Closes #1200
  • Loading branch information
djwfyi committed May 22, 2024
1 parent 9b0a2e6 commit 91f16ce
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/reference/minio-mc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,13 @@ You can also define some of these options using :ref:`Environment Variables <min

Alternatively, set the environment variable :envvar:`MC_CONFIG_DIR`.

.. option:: --disable-pager, --dp

.. versionadded:: mc RELEASE.2024-04-29T09-56-05Z

Disable the pager functionality of the MinIO Client in the CLI.
When used, output prints to raw ``STDOUT`` instead.

.. option:: --json

Enables `JSON lines <http:https://jsonlines.org/>`_ formatted output to the
Expand Down
21 changes: 21 additions & 0 deletions source/reference/minio-mc/minio-client-settings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,27 @@ Disable the MinIO Client progress bar.
:start-after: start-minio-settings-no-config-option
:end-before: end-minio-settings-no-config-option

Pager
~~~~~

.. versionadded:: mc RELEASE.2024-04-29T09-56-05Z

Disable the pager functionality of the MinIO Client in the CLI.
When used, output prints to raw ``STDOUT`` instead.

.. tab-set::

.. tab-item:: Environment Variable
:selected:

.. envvar:: DISABLE_PAGER

.. tab-item:: Configuration Setting

.. include:: /includes/common-mc-admin-config.rst
:start-after: start-minio-settings-no-config-option
:end-before: end-minio-settings-no-config-option

Color Theme
~~~~~~~~~~~

Expand Down

0 comments on commit 91f16ce

Please sign in to comment.