Class: Lono::CLI

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

Instance Method Summary collapse

Instance Method Details

#bashify(path) ⇒ Object



28
29
30
# File 'lib/lono/cli.rb', line 28

def bashify(path)
  Lono::Bashify.new(path: path).run
end

#generateObject



22
23
24
# File 'lib/lono/cli.rb', line 22

def generate
  Lono::DSL.new(options.clone).run
end

#new(project_root) ⇒ Object



12
13
14
# File 'lib/lono/cli.rb', line 12

def new(project_root)
  Lono::New.new(options.clone.merge(project_root: project_root)).run
end

#versionObject



33
34
35
# File 'lib/lono/cli.rb', line 33

def version
  puts Lono::VERSION
end