Module: Skap::CLI::Works

Extended by:
Works
Includes:
Skap::Command
Included in:
Works
Defined in:
lib/skap/cli/works.rb

Overview

CLI command for managing works (files based on sources).

Constant Summary

Constants included from Skap::Command

Skap::Command::CURRENT_DIR

Instance Method Summary collapse

Instance Method Details

#start(command, args) ⇒ void

This method returns an undefined value.

Parameters:

  • command (String)
  • args (Array<String>)


11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/skap/cli/works.rb', line 11

def start(command, args) # rubocop:disable Metrics/MethodLength
  assert_cwd

  case command
  when "covered" then covered(*args)
  when "ignored" then ignored(*args)
  when "publish" then publish(*args)
  when "outdated" then outdated(*args)
  when "uncovered" then uncovered(*args)
  when "unknown" then unknown(*args)
  else
    raise ArgumentError, "Unknown command: #{command}"
  end
end