Class: Browserctl::Commands::Recording

Inherits:
Object
  • Object
show all
Defined in:
lib/browserctl/commands/recording.rb

Constant Summary collapse

USAGE =
"Usage: browserctl recording start <name> | stop [--out PATH] | status"

Class Method Summary collapse

Class Method Details

.run(args) ⇒ Object



14
15
16
17
18
19
20
21
22
23
# File 'lib/browserctl/commands/recording.rb', line 14

def self.run(args)
  subcmd = args.shift
  case subcmd
  when "start"  then run_start(args)
  when "stop"   then run_stop(args)
  when "status" then run_status
  else
    abort "#{USAGE}\nRun 'browserctl recording <subcommand> --help' for details."
  end
end