Class: Wtf::CLI::Application
- Inherits:
-
Thor
- Object
- Thor
- Wtf::CLI::Application
- Defined in:
- lib/wtf/cli/here.rb
Instance Method Summary collapse
Instance Method Details
#clean ⇒ Object
31 32 33 |
# File 'lib/wtf/cli/here.rb', line 31 def clean Wtf::Core.new.clean end |
#doc(*args) ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/wtf/cli/here.rb', line 18 def doc(*args) if [:c] content = [:c] + " " + args.join(" ") Wtf::Core.new.write(content) puts "Folder documentation added:" puts "Doc ==> " + Wtf::Core.new.content else puts "Please provide some text with -c" end end |
#here ⇒ Object
8 9 10 |
# File 'lib/wtf/cli/here.rb', line 8 def here puts "DOC ==> " + Wtf::Core.new.content.to_s end |