Sha256: 221f65ddb8ed749c15a375ae1b561bd7231c426f8316c6b1189d8ae769cac4ea

Contents?: true

Size: 1.13 KB

Versions: 25

Compression:

Stored size: 1.13 KB

Contents

# frozen_string_literal: true

require "clamp"
require_relative "new"
require_relative "setup"
require_relative "make"
require_relative "work"
require_relative "clean"
require_relative "clone"
require_relative "pull"
require_relative "init"
require_relative "nuget_cache"

module Makit
  module Cli
    # Define the main command which includes the subcommands
    class MainCommand < Clamp::Command
      option ["-v", "--version"], :flag, "Show version" do
        puts "makit version #{Makit::VERSION}"
        exit(0)
      end
      subcommand "new", "Create a new entity", NewCommand
      subcommand "setup", "Setup a project directory", SetupCommand
      subcommand "work", "Work on a project", WorkCommand
      subcommand "make", "Make a project", MakeCommand
      subcommand "clean", "Clean a project", CleanCommand
      subcommand "clone", "Clone a git repository", CloneCommand
      subcommand "pull", "Pull latest changes from a git repository", PullCommand
      subcommand "init", "Initialize a directory as a git repository", InitCommand
      subcommand "nuget_cache", "Manage the NuGet cache", NugetCacheCommand
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
makit-0.0.57 lib/makit/cli/main.rb
makit-0.0.53 lib/makit/cli/main.rb
makit-0.0.52 lib/makit/cli/main.rb
makit-0.0.51 lib/makit/cli/main.rb
makit-0.0.50 lib/makit/cli/main.rb
makit-0.0.49 lib/makit/cli/main.rb
makit-0.0.47 lib/makit/cli/main.rb
makit-0.0.46 lib/makit/cli/main.rb
makit-0.0.45 lib/makit/cli/main.rb
makit-0.0.44 lib/makit/cli/main.rb
makit-0.0.42 lib/makit/cli/main.rb
makit-0.0.41 lib/makit/cli/main.rb
makit-0.0.35 lib/makit/cli/main.rb
makit-0.0.34 lib/makit/cli/main.rb
makit-0.0.33 lib/makit/cli/main.rb
makit-0.0.32 lib/makit/cli/main.rb
makit-0.0.31 lib/makit/cli/main.rb
makit-0.0.30 lib/makit/cli/main.rb
makit-0.0.29 lib/makit/cli/main.rb
makit-0.0.28 lib/makit/cli/main.rb