Git Product home page Git Product logo

hoconvert's People

Contributors

dolik-rce avatar maoertel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hoconvert's Issues

Includes not working (for local files)

Hi ๐Ÿ‘‹

First of all, thanks for this great tool. Unfortunately, it has one major flaw, because it doesn't work for files with includes. That is 99% of the files I'd like to use it with, because we usually include files with separate values for development and production, in order to not duplicate the entire config.

The hoconvert returns Error: Hocon(IncludeNotAllowedFromStr) for such files, because the underlying HoconLoader doesn't support includes when reading from string. It is however supported when loading from file. It should not be very difficult to modify the code to pass a file path to the HoconLoader.load_file if the user supplies the path on command line.

For HOCON passed in through stdin the behaviour can stay the same. It doesn't make much sense for the most common use cases anyway.

Migrating this into JC

The tool JC https://github.com/kellyjonbrazil/jc has been for me an epicenter for converting things into json.

To the point that ansible integrated it into their pipeline.

Would you want to connect to that maintainer and pull this code into his project?

I just want a general tool to rule them all

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.