Sha256: b042d3eb84ad4596c8e38eeb57811549aec21e5f985fe6d8ceb12c1f8ec75af8

Contents?: true

Size: 549 Bytes

Versions: 28

Compression:

Stored size: 549 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

28 entries across 28 versions & 1 rubygems

Version Path
makit-0.0.11 lib/makit/cli/work.rb
makit-0.0.10 lib/makit/cli/work.rb
makit-0.0.9 lib/makit/cli/work.rb
makit-0.0.8 lib/makit/cli/work.rb
makit-0.0.7 lib/makit/cli/work.rb
makit-0.0.6 lib/makit/cli/work.rb
makit-0.0.1 lib/makit/cli/work.rb
makit-0.0.0 lib/makit/cli/work.rb