Class: Xvert::CLI

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


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

def exit_on_failure?
  true
end

Instance Method Details

#jtObject



31
32
33
# File 'lib/xvert/cli.rb', line 31

def jt
  run(from: :json, to: :toml)
end

#jyObject



26
27
28
# File 'lib/xvert/cli.rb', line 26

def jy
  run(from: :json, to: :yaml)
end

#tjObject



54
55
56
# File 'lib/xvert/cli.rb', line 54

def tj
  run(from: :toml, to: :json)
end

#tyObject



59
60
61
# File 'lib/xvert/cli.rb', line 59

def ty
  run(from: :toml, to: :yaml)
end

#versionObject



17
18
19
# File 'lib/xvert/cli.rb', line 17

def version
  puts ::Xvert::VERSION
end

#yjObject



40
41
42
# File 'lib/xvert/cli.rb', line 40

def yj
  run(from: :yaml, to: :json)
end

#ytObject



45
46
47
# File 'lib/xvert/cli.rb', line 45

def yt
  run(from: :yaml, to: :toml)
end