Module: Skap::CLI::Sources

Extended by:
Sources
Includes:
Skap::Command
Included in:
Sources
Defined in:
lib/skap/cli/sources.rb

Overview

CLI command for managing sources list.

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
# File 'lib/skap/cli/sources.rb', line 11

def start(command, args)
  assert_cwd

  case command
  when "add" then add(*args)
  when "delete" then delete(*args)
  when "update" then update(*args)
  else
    raise ArgumentError, "Unknown command: #{command}"
  end
end