Class: Rubycam::CLI::Commands::Controls

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

Instance Method Summary collapse

Instance Method Details

#call(**options) ⇒ Object



92
93
94
95
96
97
98
99
100
# File 'lib/rubycam/cli.rb', line 92

def call(**options)
  with_device(options) do |dev|
    dev.controls.each_value do |c|
      notes = [(' [read-only]' if c.read_only?),
               (' [inactive]' if c.inactive?)].compact.join
      puts "#{c}#{notes}"
    end
  end
end