Giter VIP home page Giter VIP logo

Comments (4)

pesterhazy avatar pesterhazy commented on July 30, 2024

Thanks for this! I hadn't noticed zprint-file, it does work better! I've used a slightly modified version in the code, as zprint-file always spits to a file whereas I sometimes just want to get the contents as a string. Creating a tempfile seems overkill. Maybe you could provide a separate version zprint-whole (as in this comment) that doesn't operate on files but on strings?

from boot-fmt.

pesterhazy avatar pesterhazy commented on July 30, 2024

Shebang option support sounds awesome. Actually I was going to ask you to add support for this, I'm super happy to see it's already there.

I've created an issue to add documentation for this feature to boot-fmt.

from boot-fmt.

kkinnear avatar kkinnear commented on July 30, 2024

Sure, I will be glad to provide a version of zprint-file which operates on strings and not files. I don't see a comment, for what that's worth, but I'll just pull out the insides of zprint-file into a separate function, zprint-whole. Should also make it easier to test, come to think of it. Right now the ;!zprint tests (such as they are) live in lein-zprint, but the processing lives in zprint itself.

from boot-fmt.

pesterhazy avatar pesterhazy commented on July 30, 2024

Sorry I meant "commit", not comment: 7c93439#diff-55867f69b1a11ee1474a25191d2d82e8R9

:)

from boot-fmt.

Related Issues (14)

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.