Sha256: cf1399a16845e349392135408a752e489674239df7cd0d451fa67daa74065a9e

Contents?: true

Size: 617 Bytes

Versions: 7

Compression:

Stored size: 617 Bytes

Contents

#!/usr/bin/env ruby

require 'duke'

ARGV << '--help' if ARGV.empty?

command = ARGV.shift

case command
when '-h', '--help'
  puts <<-EOT
Usage: duke COMMAND [ARGS]

Commands:
new [DIR]             install duke into DIR or current directory
add REPO_URL          add REPO_URL to current duke directory
start REPO_DIR PORT   start cijoe for REPO_DIR on PORT
stop REPO_DIR         stop cijoe for REPO_DIR
runner REPO_DIR CMD   use CMD to run build for REPO_DIR
build REPO_DIR        tell cijoe to build REPO_DIR
list                  list cijoe server statues
  EOT
else
  Duke::Cli.new.send(command.to_sym, *ARGV)
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
duke-0.1.6 bin/duke
duke-0.1.5 bin/duke
duke-0.1.4 bin/duke
duke-0.1.3 bin/duke
duke-0.1.2 bin/duke
duke-0.1.1 bin/duke
duke-0.1.0 bin/duke