Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UltiSnips: add an option to remove options decriptions. #128

Merged
merged 1 commit into from Jan 7, 2022

Conversation

gjherbiet
Copy link
Contributor

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

@pearofducks pearofducks merged commit 4ea551a into pearofducks:master Jan 7, 2022
@pearofducks
Copy link
Owner

Thanks for putting this together!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants