开发者

Ruby command line MVC framework?

开发者 https://www.devze.com 2023-01-04 08:51 出处:网络
I\'m looking to write an app for the shell, *nix mostly. And I\'m currently in love with Ruby, especially the \'rails way\'.

I'm looking to write an app for the shell, *nix mostly. And I'm currently in love with Ruby, especially the 'rails way'.

So if there was a framework that applied rails like concepts to the commandline in ruby then that would be really fantastic.

I'v allready looked into SimpleCommand and Hirb, nothing quite what I was looking for.

To elaborate:

What I'm really looking for is a开发者_开发技巧 way to use a rails like (directory and application) structure to create a MVC command line application. So basically something like rails that doesn't respond to http, but instead reads and writes to the console.

Its not a shell, if i wanted that then irb works fine. It would be more like your options are A,B,C and they would work a bit like http links.


You should take a look at boson and hirb [2d] menus. First one for creation of commands, second one - for A,B,C options and custom/dynamic views for outputting data.


Maybe you should try script/console in your rails app. Is that what you wanted?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号