Sha256: 10091350f668f209573ad943084683f8fcc85865d1cdb3eb75fd8b0f78798c48
Contents?: true
Size: 1.08 KB
Versions: 11
Compression:
Stored size: 1.08 KB
Contents
# Volay module module Volay # CLI implementation class CLI include Mixlib::CLI banner('Volay, the Volume System Tray.') option(:help, short: '-h', long: '--help', description: 'Show this message', on: :tail, boolean: true, show_options: true, exit: 0) option(:log_level, short: '-l LEVEL', long: '--log_level LEVEL', description: 'Set the log level (debug, info, warn, error, fatal)', in: %w(debug info warn error fatal), default: :info, proc: proc { |l| l.to_sym }) option(:up, short: '-u PERCENT', long: '--up PERCENT', description: 'Up volume', proc: proc { |l| l.to_i }) option(:down, short: '-d PERCENT', long: '--down PERCENT', description: 'Down volume', proc: proc { |l| l.to_i }) option(:mute, short: '-m', long: '--toggle-mute', boolean: true, description: 'Toggle mute') end end
Version data entries
11 entries across 11 versions & 1 rubygems