Class: Playwright::CLI::Commands::List::Command

Inherits:
Object
  • Object
show all
Includes:
Utils::Ask, Utils::Display, Utils::FileManager
Defined in:
lib/playwright/cli/commands/list/command.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Utils::FileManager

#file_manager

Methods included from Utils::Ask

#ask

Methods included from Utils::Display

#display

Class Method Details

.runObject



12
13
14
# File 'lib/playwright/cli/commands/list/command.rb', line 12

def self.run
  new.run
end

Instance Method Details

#runObject



16
17
18
19
# File 'lib/playwright/cli/commands/list/command.rb', line 16

def run
  display.print "Playwright Scripts:\n"
  display.print file_manager.list_scripts, indent: true
end