require "fit-commit/installer"

module FitCommit
  class Cli
    attr_accessor :args
    def initialize(*args)
      self.args = args
    end

    def execute
      action_name = args.shift
      if action_name == "install"
        FitCommit::Installer.new.install
      else
        warn "Usage: fit-commit install"
        false
      end
    end
  end
end

require "fit-commit/installer"
require "fit-commit/version"

module FitCommit
  class Cli
    attr_accessor :args
    def initialize(*args)
      self.args = args
    end

    def execute
      action_name = args.shift
      if action_name == "install"
        FitCommit::Installer.new.install
      else
        warn "fit-commit v#{FitCommit::VERSION}"
        warn "Usage: fit-commit install"
        false
      end
    end
  end
end

Add version to CLI help output
Add version to CLI help output
