Sha256: aec92e21908caacd8c4c639a3f8174043aa1e62186cdd002b6ab059abb8fd7d9

Contents?: true

Size: 528 Bytes

Versions: 25

Compression:

Stored size: 528 Bytes

Contents

# frozen_string_literal: true

require "clamp"

module Makit
  module Cli
    # Define the 'new' subcommand
    class WorkCommand < Clamp::Command
      option ["-u", "--url"], "URL", "The git repository url"

      def execute
        if !url.nil?
          puts "url: #{url}"
          puts "relative directoyr: #{Makit::Environment.get_relative_directory(url)}"
          puts "work directory: #{Makit::Environment.get_work_directory(url)}"
        end
        puts "TODO: implement work command"
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
makit-0.0.27 lib/makit/cli/work.rb
makit-0.0.5 lib/makit/cli/work.rb
makit-0.0.4 lib/makit/cli/work.rb
makit-0.0.3 lib/makit/cli/work.rb
makit-0.0.2 lib/makit/cli/work.rb