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