Class: Wtf::CLI::Application

Inherits:
Thor
  • Object
show all
Defined in:
lib/wtf/cli/here.rb

Instance Method Summary collapse

Instance Method Details

#cleanObject



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 options[:c]
    content = options[: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

#hereObject



8
9
10
# File 'lib/wtf/cli/here.rb', line 8

def here
  puts "DOC ==> " + Wtf::Core.new.content.to_s
end