thor
How to use or add subcommand feature with thor?
I am creating a CLI app using thor. Its going well but now I\'m stuck with the sub-command feature. There ain\'t anything in its github wiki and googled around, but nothing helpful.[详细]
2023-03-14 02:28 分类:问答Have Thor complain about misspelled options in a Ruby command line app?
Is it possible to have Thor complain about misspelled/unrecognized command line options? Example: maid --slient# Oops!Misspelled.It should give a warning or usage info.[详细]
2023-03-08 02:39 分类:问答Using thor for complex command line tool
i want to create a command line tool in Ruby using Thor. This tool should be packaged as a gem so that it 开发者_StackOverflow社区is easily installed and uninstalled.[详细]
2023-03-04 14:34 分类:问答Namespacing thor commands in a standalone ruby executable
When calling thor commands on the command line, the methods are namespaced by their module/class structure, e.g.[详细]
2023-02-25 09:00 分类:问答What is wrong with this rails template?
I am attempting to take a whack at creating my first Rails application template and I am running into a slight issue with the copy_file method.[详细]
2023-02-18 04:28 分类:问答Ruby-like Syntax Highlighting in VIM for Thor
How can I configure vim to use the same syntax highlighting for Thor as it does for ruby? When I\'m editing a *.thor file, I can use :set syntax=ruby, which works, but is not permanent. Is there a way[详细]
2023-02-07 07:44 分类:问答Is it possible to call Git or other command line tools from inside a Thor script?
I find that I\'m often running a sequence of routine \'cleanup\' t开发者_运维知识库asks before and after I make a git commit for my Rails 3 app.[详细]
2023-02-06 14:46 分类:问答How can I create a daemon with Thor (ruby)?
I would like to use the popular Thor gem to create a daemonized task.My Thor class looks like this: require \'rubygems\'[详细]
2023-02-03 10:38 分类:问答Using Thor, can I pass the CLI an argument only (not a task) and send it to a default method/task?
I am using Thor to create a CLI for a Ruby gem that I am making.The executable would ideally take a command like myapp path/to/file, in the sense that I would rather the user not have to define a task[详细]
2023-02-03 09:41 分类:问答Rake task in Thor script ruby
i\'m in the process of building an installer. And with that, i want to migrate the database somehow. I\'m making my installer in Rails 3 using Thor.[详细]
2023-02-02 08:32 分类:问答