community.general/plugins
patchback[bot] 28fb1e3eac
[PR #10007/373334d6 backport][stable-10] Add xdg_mime module (#10072)
Add xdg_mime module (#10007)

* Add version of xdg_mime module

* Fix xdg_mime_get since the command is different

* Add query parameter

* Fix order of parameters

* Add myself to BOTMETA

* Add unit tests

* Fix the way we deal when there is no handler set

* Improve documentation

* Remove unused import

* Fix documentation

* Strip xdg-mime from version string

* Fix information about version

* Add error message sample

* Add test to invalid handler

* Add support to multiple mime-types

* Change the output parameter from handlers to handler

* Change tests related to multiple mime-type support

* Small fixes

* Stop using constant to enable changed state

* Add before_handlers and after_handlers

* Change tests to use before and after structures

* Add a stronger message about using a non-installed handler

* Manage some edge cases

* Change error message to match the new value

* Add some fixes

* Change some tests

* Update plugins/modules/xdg_mime.py



* Remove a blank line

* Remove single quote

* Add xdg-mime to the version in the mocks

* Remove after_handlers and make code simpler

* Update tests to work without after_handlers

* Remove diff_params and clean output_params

* Make mime_type plural since it supports multiple items

* Move the handler check to module init

* Use anchors in the test to make yaml simpler

* Update plugins/modules/xdg_mime.py



* Update plugins/modules/xdg_mime.py



* Update plugins/modules/xdg_mime.py



* Update plugins/modules/xdg_mime.py



* Update plugins/modules/xdg_mime.py



* Update plugins/modules/xdg_mime.py



* Update plugins/modules/xdg_mime.py



* Update plugins/modules/xdg_mime.py



* Update plugins/modules/xdg_mime.py



* Update plugins/modules/xdg_mime.py



* Add blank line to separe examples

* Update plugins/modules/xdg_mime.py



* Add a small homage to my late grandma

* Update plugins/modules/xdg_mime.py



* Fix pep8 problem with the homage

* Remove trailing whitespace

* Update plugins/modules/xdg_mime.py



---------



(cherry picked from commit 373334d668)

Co-authored-by: Marcos Alano <mhalano@users.noreply.github.com>
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2025-04-26 12:43:22 +02:00
..
action [PR #9583/81e22180 backport][stable-10] action/become/cache/callback: adjust import __future__ for Python3 (#9586) 2025-01-20 20:15:52 +01:00
become [PR #9583/81e22180 backport][stable-10] action/become/cache/callback: adjust import __future__ for Python3 (#9586) 2025-01-20 20:15:52 +01:00
cache [PR #9583/81e22180 backport][stable-10] action/become/cache/callback: adjust import __future__ for Python3 (#9586) 2025-01-20 20:15:52 +01:00
callback [PR #9833/04cfce78 backport][stable-10] Make ready for data tagging (#9990) 2025-04-14 21:23:00 +02:00
connection [PR #9795/96b49300 backport][stable-10] add the wsl connection plugin (#10019) 2025-04-19 09:34:11 +02:00
doc_fragments [PR #9964/1375cb65 backport][stable-10] Unify TLS/SSL config for Redfish modules with new common argument spec and docs fragment; add validate_certs and ca_path options (#9982) 2025-04-10 07:26:48 +02:00
filter [PR #10025/a3b8eed0 backport][stable-10] fixed hidden warnings from extra tests - batch 1 (#10062) 2025-04-23 22:25:51 +02:00
inventory [PR #10026/63cb8f0a backport][stable-10] deprecation: stackpath_compute (#10037) 2025-04-21 13:20:40 +02:00
lookup [PR #10028/e9997e08 backport][stable-10] deprecation: manifold (#10038) 2025-04-21 13:21:10 +02:00
module_utils [PR #10007/373334d6 backport][stable-10] Add xdg_mime module (#10072) 2025-04-26 12:43:22 +02:00
modules [PR #10007/373334d6 backport][stable-10] Add xdg_mime module (#10072) 2025-04-26 12:43:22 +02:00
plugin_utils [PR #9833/04cfce78 backport][stable-10] Make ready for data tagging (#9990) 2025-04-14 21:23:00 +02:00
test [PR #9833/04cfce78 backport][stable-10] Make ready for data tagging (#9990) 2025-04-14 21:23:00 +02:00