Class: Konfig::CLI

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

Instance Method Summary collapse

Instance Method Details

#gsObject



9
10
11
12
13
14
15
16
17
# File 'lib/cli.rb', line 9

def gs
  infile = options[:in]
  workdir = File.dirname(infile)
  filename = File.basename(infile)
  provider = Konfig::YamlProvider.new(workdir: workdir, filename: filename)
  provider.load(false)

  puts Settings.generate_schema
end