Sha256: 9deaa99c82f6e4bc7391e2bc0717bde3a69905cb9bdaa9aa2161bc40529554d8
Contents?: true
Size: 725 Bytes
Versions: 1
Compression:
Stored size: 725 Bytes
Contents
require 'commander' module Salt class CLI include Commander::Methods def run program :name, 'Salt' program :version, Salt::VERSION program :description, 'Compiles and/or runs salt programs.' compile_command lint_command run_command run! end private def compile_command command :compile do |command| command.syntax = 'salt compile' command.description = 'Compiles the given file.' command.option '-f STRING', '--file STRING', String, 'The file to compile.' command.action do |_, options| p options end end end def lint_command end def run_command end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
salt-0.0.2 | lib/salt/cli.rb |