* mmctl: add listing oauth apps

* Fix tests

* Update mmctl docs

* Fix tests

* Update server/cmd/mmctl/commands/oauth.go

Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>

* Update server/cmd/mmctl/commands/oauth.go

Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>

* Add paging

* Update docs

---------

Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>
Этот коммит содержится в:
Joram Wilander
2023-12-05 12:25:35 -05:00
коммит произвёл GitHub
родитель df6c8c5f5e
Коммит e0a36cf60a
7 изменённых файлов: 333 добавлений и 0 удалений

Просмотреть файл

@@ -45,6 +45,7 @@ SEE ALSO
* `mmctl ldap <mmctl_ldap.rst>`_ - LDAP related utilities
* `mmctl license <mmctl_license.rst>`_ - Licensing commands
* `mmctl logs <mmctl_logs.rst>`_ - Display logs in a human-readable format
* `mmctl oauth <mmctl_oauth.rst>`_ - Management of OAuth2 apps
* `mmctl permissions <mmctl_permissions.rst>`_ - Management of permissions
* `mmctl plugin <mmctl_plugin.rst>`_ - Management of plugins
* `mmctl post <mmctl_post.rst>`_ - Management of posts

41
server/cmd/mmctl/docs/mmctl_oauth.rst Обычный файл
Просмотреть файл

@@ -0,0 +1,41 @@
.. _mmctl_oauth:
mmctl oauth
-----------
Management of OAuth2 apps
Synopsis
~~~~~~~~
Management of OAuth2 apps
Options
~~~~~~~
::
-h, --help help for oauth
Options inherited from parent commands
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
::
--config string path to the configuration file (default "$XDG_CONFIG_HOME/mmctl/config")
--disable-pager disables paged output
--insecure-sha1-intermediate allows to use insecure TLS protocols, such as SHA-1
--insecure-tls-version allows to use TLS versions 1.0 and 1.1
--json the output format will be in json format
--local allows communicating with the server through a unix socket
--quiet prevent mmctl to generate output for the commands
--strict will only run commands if the mmctl version matches the server one
--suppress-warnings disables printing warning messages
SEE ALSO
~~~~~~~~
* `mmctl <mmctl.rst>`_ - Remote client for the Open Source, self-hosted Slack-alternative
* `mmctl oauth list <mmctl_oauth_list.rst>`_ - List OAuth2 apps

53
server/cmd/mmctl/docs/mmctl_oauth_list.rst Обычный файл
Просмотреть файл

@@ -0,0 +1,53 @@
.. _mmctl_oauth_list:
mmctl oauth list
----------------
List OAuth2 apps
Synopsis
~~~~~~~~
list all OAuth2 apps
::
mmctl oauth list [flags]
Examples
~~~~~~~~
::
oauth list
Options
~~~~~~~
::
-h, --help help for list
--page int Page number to fetch for the list of OAuth2 apps
--per-page int Number of OAuth2 apps to be fetched (default 200)
Options inherited from parent commands
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
::
--config string path to the configuration file (default "$XDG_CONFIG_HOME/mmctl/config")
--disable-pager disables paged output
--insecure-sha1-intermediate allows to use insecure TLS protocols, such as SHA-1
--insecure-tls-version allows to use TLS versions 1.0 and 1.1
--json the output format will be in json format
--local allows communicating with the server through a unix socket
--quiet prevent mmctl to generate output for the commands
--strict will only run commands if the mmctl version matches the server one
--suppress-warnings disables printing warning messages
SEE ALSO
~~~~~~~~
* `mmctl oauth <mmctl_oauth.rst>`_ - Management of OAuth2 apps