-
-
Notifications
You must be signed in to change notification settings - Fork 640
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
remove TOML and JSON support? #34
Comments
I'm not using this, but I think it's great people are still working on it. So if you drop TOML/JSON then it doesn't bother me. Thanks for asking though! Also I looked at the issue you mentioned. I wasn't sure if this would work, but could you just unmarshal a json file, then marshal it into a yaml string, then unmarshal it using the custom yaml unmarshaler? I might be misunderstanding what's involved though, I didn't read that closely. |
I don't have a problem with TOML support, or even JSON, being dropped. |
I tend to use YAML everywhere as I personally like expressiveness and structure a log. Therefore it would not bother me. Besides I think supporting one thing right is a better approach as opposed to make it work for everyone ( TOML, JSON and YAML ) with limitations due to the lowest common features. |
Thanks for the feedback. I'll drop them soon in the next release, so this don't block us in new features and refactorings. |
Just to reply @tscholl2
You probably could do that, but it's probably somewhat error prone. Another option could be to have an
Most JSON (unless perhaps if it's indented by tabs) will be considered valid YAML. However, this still leads to having to support two formats. |
I also just use yaml. |
Travis-ci and gitlab-ci only have yaml support. So I think people are quite familiar with it. |
Done on master branch |
Oh no! I use TOML. Is it too late to switch back? 😢 |
I'm sorry for that @carlmjohnson I know backward incompatible changes are a pain, and I usually thought well before doing them. Unfortunally TOML and JSON are not as full featured as YAML, and we don't plan to support other formats soon. You can convert your files to YAML to keep using Task. |
@carlmjohnson Checkout Remarshal to get help you get started on the conversion. I rather like TOML for simple config bit agree that YAML is much better for enhancing |
I ended up converting my TOML to YAML with Remarshall on my own, but thanks for the advice. 😄 |
BTW, you can see my Taskfile linked in my blog post: https://blog.carlmjohnson.net/post/2017/hugo-asset-pipeline/ |
@carlmjohnson I saw your article and added it to the README. Just more info about why I prefer YAML for Task (in case someone else comes to this issue):
|
@carlmjohnson Yeah, didn't realize your comment was almost two weeks old before I posted. BTW, nice article! ;-) |
Maintaining different formats is getting complicated after #32, specially with TOML, that is a very inflexible format.
This was asked long ago, but I don't think anyone are actually using it.
I'm asking here if anyone have a problem with it first.
/cc @tscholl2 @sascha-andres @smyrman @zbindenren
The text was updated successfully, but these errors were encountered: