20 votes

Bashly: A command-line application (written in Ruby) that declaratively generates feature-rich Bash scripts

13 comments

  1. [4]
    Rocket_Man
    Link
    This is great, but honestly just a symptom of how bad bash is.

    This is great, but honestly just a symptom of how bad bash is.

    6 votes
    1. [2]
      underdog
      Link Parent
      Do you mean bash is bad for programming? I actually find it to be one of the most reliable and powerful tools I use daily. It might not be perfect for every use case, but it’s actually hard to...

      Do you mean bash is bad for programming? I actually find it to be one of the most reliable and powerful tools I use daily. It might not be perfect for every use case, but it’s actually hard to think on something more effective for what it’s designed to do

      3 votes
      1. Rocket_Man
        Link Parent
        I was thinking specifically about programming. Shells are a little hard to talk about because stringing commands together can be extremely useful and fast and productive. But the overall...

        I was thinking specifically about programming. Shells are a little hard to talk about because stringing commands together can be extremely useful and fast and productive. But the overall architecture of the shell like it's syntax, type system, error handling ect I consider more the core of the shell. And for Bash I would say it's bad

        3 votes
    2. carrotflowerr
      Link Parent
      For the purpose of *scripting on a *nix system it's really good. Like if you know command line you know bash. It would, however, be psychotic to recommend it for any other purpose.

      For the purpose of *scripting on a *nix system it's really good. Like if you know command line you know bash. It would, however, be psychotic to recommend it for any other purpose.

      2 votes
  2. sleepydave
    Link
    I'll have to give this a shot since it looks like one of the most frictionless solutions I've seen for Bash scripting. I'm most impressed by the support for Bash completions - if that works as...

    I'll have to give this a shot since it looks like one of the most frictionless solutions I've seen for Bash scripting. I'm most impressed by the support for Bash completions - if that works as well as I'm imagining, this tool might become a daily driver for me.

    4 votes
  3. priw8
    Link
    I really need to try this, managing boilerplate code for parsing args etc has always been the most annoying thing in bash scripts for me (which is why most of my scripts end up with half-assed...

    I really need to try this, managing boilerplate code for parsing args etc has always been the most annoying thing in bash scripts for me (which is why most of my scripts end up with half-assed parsing and cryptic errors like echo "give arguments")

    3 votes
  4. [5]
    cutmetal
    Link
    I really wish it was written in bash so it could be self-hosting.

    I really wish it was written in bash so it could be self-hosting.

    3 votes
    1. [4]
      Weldawadyathink
      Link Parent
      I’m not sure I understand. You can’t self host a Ruby program? Or a docker image?

      I’m not sure I understand. You can’t self host a Ruby program? Or a docker image?

      3 votes
      1. [2]
        teaearlgraycold
        Link Parent
        Self hosting is a term usually used with compilers. It means the compiler is written in the language it compiles.

        Self hosting is a term usually used with compilers. It means the compiler is written in the language it compiles.

        4 votes
        1. Weldawadyathink
          Link Parent
          OK, that makes sense. I guess I just haven’t heard it in the context of completed before. Thanks for the info.

          OK, that makes sense. I guess I just haven’t heard it in the context of completed before. Thanks for the info.

          2 votes
      2. cutmetal
        Link Parent
        Yeah sorry my comment was unclear, teaearlgreycold understood correctly - I wish bashly was written in bash so it could use itself to generate its own CLI.

        Yeah sorry my comment was unclear, teaearlgreycold understood correctly - I wish bashly was written in bash so it could use itself to generate its own CLI.

        2 votes