Sha256: 807e4ea927c4a627edf4ba004498cc40daa7387100fca7386385c01a3f207065

Contents?: true

Size: 1.09 KB

Versions: 29

Compression:

Stored size: 1.09 KB

Contents

# frozen_string_literal: true

module Takelage
  # takelage git check
  class GitCheck < SubCommandBase
    include LoggingModule
    include SystemModule
    include ConfigModule
    include GitCheckClean
    include GitCheckMain
    include GitCheckWorkspace

    #
    # git check clean
    #
    desc 'clean', 'Check if the git workspace is clean'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    Check if the git workspace is clean
    LONGDESC
    # Check if the git workspace is clean.
    def clean
      exit git_check_clean
    end

    #
    # git check main
    #
    desc 'main', 'Check if we are on the git main branch'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    Check if we are on the git main branch
    LONGDESC
    # Check if we are on the git main branch.
    def main
      exit git_check_main
    end

    #
    # git check workspace
    #
    desc 'workspace', 'Check if a git workspace exists'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    Check if a git workspace exists
    LONGDESC
    # Check if a git workspace exists.
    def workspace
      exit git_check_workspace
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
takelage-0.29.14 lib/takelage/git/check/cli.rb
takelage-0.29.13 lib/takelage/git/check/cli.rb
takelage-0.29.11 lib/takelage/git/check/cli.rb
takelage-0.29.10 lib/takelage/git/check/cli.rb
takelage-0.29.8 lib/takelage/git/check/cli.rb
takelage-0.29.6 lib/takelage/git/check/cli.rb
takelage-0.29.0 lib/takelage/git/check/cli.rb
takelage-0.28.26 lib/takelage/git/check/cli.rb
takelage-0.28.24 lib/takelage/git/check/cli.rb
takelage-0.28.14 lib/takelage/git/check/cli.rb
takelage-0.28.11 lib/takelage/git/check/cli.rb
takelage-0.28.8 lib/takelage/git/check/cli.rb
takelage-0.28.7 lib/takelage/git/check/cli.rb
takelage-0.28.5 lib/takelage/git/check/cli.rb
takelage-0.27.1 lib/takelage/git/check/cli.rb
takelage-0.27.0 lib/takelage/git/check/cli.rb
takelage-0.26.7 lib/takelage/git/check/cli.rb
takelage-0.26.4 lib/takelage/git/check/cli.rb
takelage-0.26.3 lib/takelage/git/check/cli.rb
takelage-0.26.2 lib/takelage/git/check/cli.rb