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.57 lib/makit/cli/work.rb
makit-0.0.53 lib/makit/cli/work.rb
makit-0.0.52 lib/makit/cli/work.rb
makit-0.0.51 lib/makit/cli/work.rb
makit-0.0.50 lib/makit/cli/work.rb
makit-0.0.49 lib/makit/cli/work.rb
makit-0.0.47 lib/makit/cli/work.rb
makit-0.0.46 lib/makit/cli/work.rb
makit-0.0.45 lib/makit/cli/work.rb
makit-0.0.44 lib/makit/cli/work.rb
makit-0.0.42 lib/makit/cli/work.rb
makit-0.0.41 lib/makit/cli/work.rb
makit-0.0.35 lib/makit/cli/work.rb
makit-0.0.34 lib/makit/cli/work.rb
makit-0.0.33 lib/makit/cli/work.rb
makit-0.0.32 lib/makit/cli/work.rb
makit-0.0.31 lib/makit/cli/work.rb
makit-0.0.30 lib/makit/cli/work.rb
makit-0.0.29 lib/makit/cli/work.rb
makit-0.0.28 lib/makit/cli/work.rb