Class: Rubycam::CLI::Commands::Controls
- Inherits:
-
VideoCommand
- Object
- Dry::CLI::Command
- VideoCommand
- Rubycam::CLI::Commands::Controls
- 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(**) with_device() 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 |