Sha256: cf45812abd6fd9ac54214be1fd343a8c177f9974da396d94690d115c0737784a

Contents?: true

Size: 1.23 KB

Versions: 1

Compression:

Stored size: 1.23 KB

Contents

# frozen_string_literal: true

require 'dry/cli'
require_relative './commands/version'
require_relative './commands/tasks'
require_relative './commands/move'
require_relative './commands/checkout'
require_relative './commands/commit'
require_relative './commands/start'
require_relative './commands/track'
require_relative './commands/stop'
require_relative './commands/install'
require_relative './commands/pr'
require_relative './commands/health_check'

module Dude
  module Commands
    extend Dry::CLI::Registry

    register 'install', Dude::Commands::Install, aliases: ['install']
    register 'version', Dude::Commands::Version, aliases: ['v', '-v', '--version']
    register 'tasks', Dude::Commands::Tasks, aliases: ['t', '-t', '--tasks']
    register 'move', Dude::Commands::Move, aliases: ['m', '-m', '--move']
    register 'checkout', Dude::Commands::Checkout, aliases: ['co']
    register 'commit', Dude::Commands::Commit
    register 'track', Dude::Commands::Track, aliases: ['tr']
    register 'stop', Dude::Commands::Stop
    register 'start', Dude::Commands::Start, aliases: ['st']
    register 'healthcheck', Dude::Commands::HealthCheck

    register 'pr' do |prefix|
      prefix.register 'create', Dude::Commands::PR::Create
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dude-cli-2.1.0 lib/dude/commands.rb