Class: Makit::Cli::RemoveRepositoryCommand

Inherits:
Clamp::Command
  • Object
show all
Defined in:
lib/makit/cli/repository_commands.rb

Overview

Remove tracked repositories by pattern

Instance Method Summary collapse

Instance Method Details

#executeObject



435
436
437
438
439
440
441
442
443
444
# File 'lib/makit/cli/repository_commands.rb', line 435

def execute
  if missing_rakefile?
    remove_missing_rakefile_repos
  elsif pattern
    remove_by_pattern(pattern)
  else
    puts "Error: Either provide a PATTERN or use --missing-rakefile"
    exit 1
  end
end