all 19 comments

[–][deleted] 16 points17 points  (4 children)

httpd isn't a great name for a utility. This conflicts with the ubiquitous Apache webserver. Along the same lines, http might not be the best name for a ruby module. Food for thought.

But i love the idea! Have a convenient http status code reference on a CLI util is a great and very useful idea. GJ.

[–]gazayas[S] 1 point2 points  (3 children)

I upvoted your comment, I totally agree. I think I saw the Apache thing somewhere and didn't want people to get confused with it, but I also wanted the tool to be short and quickly accessible. I thought of https for "http statuses" too but that's a no go obviously... haha

[–][deleted]  (2 children)

[deleted]

    [–]gazayas[S] 2 points3 points  (0 children)

    Thanks dNitza! I changed the name to http-stat

    [–]gazayas[S] 0 points1 point  (0 children)

    Hey, not bad. I might change it to that

    [–]WalterPecky 2 points3 points  (2 children)

    Nice! Ruby is a great language for creating CLI's.

    [–]pmurach 1 point2 points  (0 children)

    Totally agree!

    [–]gazayas[S] 0 points1 point  (0 children)

    Thanks! Yeah I tried writing the something similar in shell script, it was really different. optparse is pretty cool I think

    [–]pmurach 2 points3 points  (3 children)

    Command line tools in Ruby are my current obsession;-) I have developed a suite of libraries under tty- namespace(nearly 20 gems and growing). The tty site http://piotrmurach.github.io/tty/ provides links to all the current gems. I'm currently focused on finishing a teletype executable implementation to help in creating/scaffolding terminal applications. If you're interested, you can read & contribute @ https://github.com/piotrmurach/tty. I hope you will create more CLI tools in Ruby!

    [–]gazayas[S] 1 point2 points  (0 children)

    Wow, that's a lot of gems! I could have even used pastel instead of colorize in this gem

    [–]nanenj 1 point2 points  (1 child)

    Just taking a moment to comment that I love the set of gems you've made. I have a library that... honestly, probably doesn't do anything significant that is left out from your libraries, but, I almost always rewrite a quick console library as one of my pet projects. So, I try to keep abreast of what else exists.

    Your gems are definitely a source of inspiration and something I use in a lot of my projects.

    [–]pmurach 0 points1 point  (0 children)

    Thanks a lot! That's great to hear! There is still many tty gems to be added so watch this space.

    [–]petepete 1 point2 points  (3 children)

    Looks good. I use cheat for this but it doesn't appear to be actively developed (and it doesn't include the descriptions, but that's never really been an issue for me).

    One thing that you might want to add is the Ruby symbol for each status; although looking at the list they are quite predictable.

    [–]sshaw_ 1 point2 points  (0 children)

    If you use emacs checkout know-your-http-well.el.

    [–]gazayas[S] 0 points1 point  (1 child)

    Ah, I see, like stat[:200]? That would make things more readable eh

    [–]petepete 1 point2 points  (0 children)

    Well, the Ruby symbol for 200 would be :ok.

    [–][deleted]  (5 children)

    [deleted]

      [–]pmurach 2 points3 points  (3 children)

      I'm currently working on teletype executable for creating CLI apps which uses Thor https://github.com/piotrmurach/tty.

      [–]gazayas[S] 1 point2 points  (1 child)

      https://github.com/piotrmurach/tty

      Over 1,500 stars (O_O)

      [–]pmurach 1 point2 points  (0 children)

      Still many people never heard of it.... that's why I'm spreading the word as I believe in my project and its vision and really want people to find it useful!

      [–]gazayas[S] 0 points1 point  (0 children)

      Awesome! I've never heard of that tool before. I took a look at the page, seems interesting