Class: FileAnnotate::CLI

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

Overview

CLI 負責處理指令列操作

Instance Method Summary collapse

Instance Method Details

#addObject



10
11
12
13
14
# File 'lib/file_annotate/cli.rb', line 10

def add
  puts "=== FileAnnotate CLI - Add file path comments ==="
  FileAnnotate::Annotator.annotate_all
  puts "Done!"
end

#removeObject



17
18
19
20
21
# File 'lib/file_annotate/cli.rb', line 17

def remove
  puts "=== FileAnnotate CLI - Remove file path comments ==="
  FileAnnotate::Annotator.remove_all
  puts "Done!"
end