Class: Playwright::CLI::Commands::Generate

Inherits:
Hanami::CLI::Command
  • Object
show all
Defined in:
lib/playwright/cli/commands/generate.rb,
lib/playwright/cli/commands/generate/command.rb

Defined Under Namespace

Classes: Command

Instance Method Summary collapse

Instance Method Details

#call(name:, expanded:) ⇒ Object



18
19
20
# File 'lib/playwright/cli/commands/generate.rb', line 18

def call(name:, expanded:, **)
  Command.run(name, type(expanded))
end

#type(expanded) ⇒ Object



22
23
24
# File 'lib/playwright/cli/commands/generate.rb', line 22

def type expanded
  expanded ? :expanded : :simple
end