class MGit::RemoveAllCommand
Public Instance Methods
arity()
click to toggle source
# File lib/mgit/commands/remove_all.rb, line 7 def arity [0, 0] end
description()
click to toggle source
# File lib/mgit/commands/remove_all.rb, line 15 def description 'removes all repositories from mgit (resets mgit\'s store)' end
execute(_)
click to toggle source
# File lib/mgit/commands/remove_all.rb, line 3 def execute(_) Registry.clean if agree('This will delete all repositories from mgit. Are you sure?'.red) end
usage()
click to toggle source
# File lib/mgit/commands/remove_all.rb, line 11 def usage 'removeall' end