Sha256: 12ab4af674a0001fc6fb86251e71d2a39cb0e9e7607050ef2a4359f08a7390b8

Contents?: true

Size: 1.3 KB

Versions: 1

Compression:

Stored size: 1.3 KB

Contents

module GitCompound
  module Command
    module Procedure
      # Help command procedure
      #
      class Help < Procedure
        def execute
          Logger.info(message)
        end

        def message
          self.class.message
        end

        # rubocop:disable Metrics/AbcSize
        def self.message
          <<-EOS
        #{'GitCompound version'.bold.yellow} #{GitCompound::VERSION.bold}

        Usage: #{'gitcompound'.bold.green}
          #{'[options]'.green} #{'command'.bold} #{'[manifest_file]'.green}

        Commands:
          #{'build'.bold}
              builds project from manifest (or lockfile if present)

              If manifest is not specified it uses one of
              #{Manifest::FILENAMES.inspect}

          #{'update'.bold}
              updates project

          #{'check'.bold}
              detects circular depenencies, conflicting dependencies
              and checks for name contraints

          #{'show'.bold}
              prints structure of project

          #{'help'.bold}
              prints this help

        Options:'
          #{'--verbose'.bold}
              prints verbose log info

          #{'--disable-colors'.bold}
              disable ANSI colors in output
          EOS
        end
        # rubocop:enable Metrics/AbcSize
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
git_compound-0.2.0 lib/git_compound/command/procedure/help.rb