Sha256: 71b6fc67b604f6f1494fb63a42a95c77f7f69c45d133d2f5b30353cc83b2bc6c
Contents?: true
Size: 482 Bytes
Versions: 3
Compression:
Stored size: 482 Bytes
Contents
#You must add -> load "tacape/tools/sample.rb" to cli.rb module Tacape module Tools class Sample < Thor namespace 'sample' desc 'test','This is just a sample' def test puts "Implement your tool like this, pay attention to the namespace so it doesn't clash with other tools." end end end #Redefining the Cli to use this Tool class Cli < Thor desc 'sample','Defines a Tacape tool' subcommand 'sample', Tools::Sample end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tacape-0.0.6 | templates/tools/sample.rb |
tacape-0.0.4 | templates/tools/sample.rb |
tacape-0.0.3 | templates/tools/sample.rb |