Sha256: 6d190bd9ed6a69b92feabfff3cb3762c09a58b66d4b84423455c1f750f6aeae3

Contents?: true

Size: 665 Bytes

Versions: 2

Compression:

Stored size: 665 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'
    def clone
      GitCloner::Core.new.execute
    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

2 entries across 2 versions & 1 rubygems

Version Path
git_cloner-0.0.3 bin/gitcloner
git_cloner-0.0.2 bin/gitcloner