Code Monkey home page Code Monkey logo

Comments (9)

nshalman avatar nshalman commented on August 17, 2024 1

PR created: NixOS/nixpkgs#21695
edit: merged.

from sh.

mvdan avatar mvdan commented on August 17, 2024

Ah, this is simply a bash token (not POSIX) that I hadn't added yet. Thanks for spotting!

from sh.

nshalman avatar nshalman commented on August 17, 2024

No problem. Thanks for sharing this code. Aside from that one token it was perfectly happy to apply a consistent style to a bunch of organically grown scripts that each contained multiple different styles.

If I were a stronger Go programmer and had more time I'd have tried to fix it myself and open a PR, but I figured a good bug report would still be appreciated.

Again, thanks for sharing your code!

from sh.

mvdan avatar mvdan commented on August 17, 2024

No problem. Thanks for sharing this code. Aside from that one token it was perfectly happy to apply a consistent style to a bunch of organically grown scripts that each contained multiple different styles.

Cool :)

If I were a stronger Go programmer and had more time I'd have tried to fix it myself and open a PR, but I figured a good bug report would still be appreciated.

Parsers become stupidly complex very easily, especially one that parses Shell. So no worries on that front - it's much easier for me to fix things like these as I'm already familiar with the codebase.

from sh.

nshalman avatar nshalman commented on August 17, 2024

Thanks for the quick fix! The new version no longer throws the error for me.
I packaged this tool for NixOS yesterday (NixOS/nixpkgs#16247) and will be updating the package to point to this code.

from sh.

mvdan avatar mvdan commented on August 17, 2024

@nshalman could you please update it to 0.2.0 there? Thanks!

from sh.

nshalman avatar nshalman commented on August 17, 2024

As shown above, I've created NixOS/nixpkgs#19524
Thanks for the reminder!
edit: It's been merged.

from sh.

mvdan avatar mvdan commented on August 17, 2024

@nshalman thanks!

from sh.

mvdan avatar mvdan commented on August 17, 2024

@nshalman please update to 1.1.0 :)

from sh.

Related Issues (20)

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.