Sha256: e8159df4ba7c0b44397398e70e811eff40b887065704557db4f2f5c466fca75c

Contents?: true

Size: 731 Bytes

Versions: 1

Compression:

Stored size: 731 Bytes

Contents

#!/usr/bin/env ruby
# encoding: utf-8

require 'git_cloner_core'
require 'git_cloner/version'
require 'thor'

module GitCloner
  # GitCloner CLI
  class CLI < Thor
    class_option :help, type: :boolean, aliases: '-h', desc: 'help message.'
    class_option :version, type: :boolean, desc: 'version'

    desc 'clone', 'clone git repositories from Gitclonerfile settings'
    def clone
      GitCloner::Core.new.clone
    rescue => e
      warn(e.message)
      exit(false)
    end

    desc 'init', 'generate Gitclonerfile'
    def init
      GitCloner::Core.new.init
    end

    desc 'version', 'version'
    def version
      p GitCloner::VERSION
    end
  end
end

GitCloner::CLI.start(ARGV)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
git_cloner-0.0.4 bin/gitcloner