You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/lib/ansible/cli
Felix Fontein 8d93ba9120
Plugin/module docs: parse return values, add collection names in them (version_added_collection), and format them nicely in ansible-doc (#69796)
* Tag return value docs if they are a dict (and not str/None).

* Try to parse return docs as YAML.

* Properly dump return values in ansible-doc.

* Adjust plugin formatter.

* Add changelog fragment.

* Don't add 'default' for return values.

* Fix plugin_formatter.

* Only try to parse return docs if they are still a string.

* Add tests.

* Warn if RETURN cannot be parsed.

* Adjust tests. Also test for warning.

* if -> elif (otherwise EXAMPLE will be parsed too).

* Always parse return documentation, and fail if it is invalid YAML.

* Polishing.

* Mostly re-enable ansible-doc tests.

Listing from the local collection seems to be somewhat broken. I assume this
is why the test was disabled.

* Lint and make tests work with Python 2.

* Keep FQCNs in plugins (not modules), i.e. restore previous state.
4 years ago
..
arguments Fix formatting in docs for `--become-method` (#68152) 4 years ago
scripts Revert "Fix missing persistent connection messages (#68496)" (#69147) 4 years ago
__init__.py Deprecation revisited (#69926) 4 years ago
adhoc.py win - Allow FQCN for win_command and win_shell 4 years ago
config.py fixes to config manager (#58530) 5 years ago
console.py Version source tagging (automatic and manual) for version_added and deprecation versions (#69680) 4 years ago
doc.py Plugin/module docs: parse return values, add collection names in them (version_added_collection), and format them nicely in ansible-doc (#69796) 4 years ago
galaxy.py ansible-galaxy - Fix role info when role is not installed (#69924) 4 years ago
inventory.py Code cleanup in `ansible-inventory`. 4 years ago
playbook.py collection routing (#67684) 4 years ago
pull.py Migrate command line parsing to argparse (#50610) 5 years ago
vault.py Don't crash ansible-vault create when no arguments (#68667) 4 years ago