more code cleanup
This commit is contained in:
@@ -14,14 +14,6 @@ module Feature
|
||||
@argv = argv
|
||||
end
|
||||
|
||||
def valid?
|
||||
true
|
||||
end
|
||||
|
||||
def help
|
||||
exit
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -3,6 +3,14 @@ require_relative './base'
|
||||
module Feature
|
||||
|
||||
class Branch < Feature::Base
|
||||
def valid?
|
||||
true
|
||||
end
|
||||
|
||||
def help
|
||||
exit
|
||||
end
|
||||
|
||||
def execute
|
||||
run_cmd "git branch"
|
||||
end
|
||||
|
||||
@@ -3,7 +3,6 @@ require_relative './base'
|
||||
module Feature
|
||||
|
||||
class Rebase < Feature::Base
|
||||
|
||||
def valid?
|
||||
argv.size == 1
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user