Class: Mami::CLI

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

Instance Method Summary collapse

Instance Method Details



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

def print
  path = ENV['MAMI_DIR']
  return puts "no-mami" unless path
  extension = options[:extension].nil? ? nil : '.' + options[:extension]
  puts [path, "/", %x[date "+%Y-%m-%d-%H-%M-%S"].chomp, extension].compact.join
end

#versionObject



9
10
11
# File 'lib/mami/cli.rb', line 9

def version
  puts "Mami version #{Mami::VERSION}"
end