This adds the --no-description option to UltiSnips/generate.py with effect to remove descriptions (that can be lengthy) for module options w/o default or choices.
Before:
snippet add_host "Add a host (and alternatively a group) to the ansible-playbook in-memory inventory" b
ansible.builtin.add_host:
name: ${1:# The hostname/ip of the host to add to the inventory, can include a colon and a port number.}
groups: ${3:# The groups to add the hostname to.}
endsnippet
After:
snippet add_host "Add a host (and alternatively a group) to the ansible-playbook in-memory inventory" b
ansible.builtin.add_host:
name: ${1:}
groups: ${3:}
endsnippet
This adds the
--no-description
option toUltiSnips/generate.py
with effect to remove descriptions (that can be lengthy) for module options w/o default or choices.Before:
After: