diff --git a/lib/feature/base.rb b/lib/feature/base.rb index efc4762..2819407 100644 --- a/lib/feature/base.rb +++ b/lib/feature/base.rb @@ -14,14 +14,6 @@ module Feature @argv = argv end - def valid? - true - end - - def help - exit - end - end end diff --git a/lib/feature/branch.rb b/lib/feature/branch.rb index ffc308d..38ebbc9 100644 --- a/lib/feature/branch.rb +++ b/lib/feature/branch.rb @@ -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 diff --git a/lib/feature/rebase.rb b/lib/feature/rebase.rb index d042d10..1ff918f 100644 --- a/lib/feature/rebase.rb +++ b/lib/feature/rebase.rb @@ -3,7 +3,6 @@ require_relative './base' module Feature class Rebase < Feature::Base - def valid? argv.size == 1 end