Glavin001 / atom-beautify

:mega: Help Wanted - Looking for Maintainer: https://github.com/Glavin001/atom-beautify/issues/2572 | :lipstick: Universal beautification package for Atom editor (:warning: Currently migrating to https://github.com/Unibeautify/ and have very limited bandwidth for Atom-Beautify Issues. Thank you for your patience and understanding :heart: )
http://unibeautify.com/
MIT License
1.49k stars 454 forks source link

Support for ansible .yml #1479

Open rgarrigue opened 7 years ago

rgarrigue commented 7 years ago

Hello

I'ld like a beautifier for ansible file / .yml extension. Here's what Atom told me

Atom Beautify could not determine a supported beautifier to handle this file with grammar "Ansible" and extension "yml". If you would like to request support for this file and its language, please create an issue for Atom Beautify at https://github.com/Glavin001/atom-beautify/issue

Best regards,

prettydiff commented 7 years ago

Would you mind providing a location where I can find a specification for ansible and file extensions?

rgarrigue commented 7 years ago

I dunno about a full formal specification. The docs here may be the best one I found : http://docs.ansible.com/ansible/playbooks_intro.html#playbook-language-example Which include several examples and a link to http://docs.ansible.com/ansible/YAMLSyntax.html

They do state ansible try to stick to raw yaml

Here is a real life example, with variables, the part between double bracket {{ }} : https://github.com/ansible/ansible-examples/blob/master/lamp_haproxy/roles/db/tasks/main.yml And another one with line break for a bloc line 33 to 36 : https://github.com/ansible/ansible-examples/blob/master/language_features/cloudformation.yaml

I hope that's enought

2017-01-21 23:00 GMT+01:00 Austin Cheney notifications@github.com:

Would you mind providing a location where I can find a specification for ansible and file extensions?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Glavin001/atom-beautify/issues/1479#issuecomment-274291065, or mute the thread https://github.com/notifications/unsubscribe-auth/AByQn4hNhpAlhW-MzruADddRX701SSIaks5rUoAJgaJpZM4LqIjq .

prettydiff commented 7 years ago

Great. This is exactly the kind of information I was looking for. I will have to see if one of the current yaml beautifiers can be extended to support the {{ delimiters.

Glavin001 commented 7 years ago

Duplicate of https://github.com/Glavin001/atom-beautify/issues/312 ?

Implemented with PR https://github.com/Glavin001/atom-beautify/pull/1600