Class: MaskSQL::CLI
- Inherits:
-
Thor
- Object
- Thor
- MaskSQL::CLI
- Defined in:
- lib/mask_sql/cli.rb
Instance Method Summary collapse
Instance Method Details
#init ⇒ Object
36 37 38 |
# File 'lib/mask_sql/cli.rb', line 36 def init puts Initializer.copy_template end |
#mask ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/mask_sql/cli.rb', line 17 def mask return unless = .dup if [:config] [:config] = File.([:config]) else default_config = File.('.mask.yml') [:config] = default_config if File.exist?(default_config) end converter = Converter.new() converter.mask puts "\e[32mDone.\e[0m" end |
#version ⇒ Object
43 44 45 |
# File 'lib/mask_sql/cli.rb', line 43 def version puts "mask_sql #{MaskSQL::VERSION}" end |