Sha256: e7af7515e687910cdb15a0caf17846ffad3f2c13dc7249e553fe43bf259acda1
Contents?: true
Size: 525 Bytes
Versions: 6
Compression:
Stored size: 525 Bytes
Contents
require 'thor' require 'thor/group' require 'erb' module Golf class CLI < Thor include Thor::Actions def self.source_root File.expand_path("../../../", __FILE__) end desc "new [NAME]", "Creates new golf app" def new(name) directory("template", name) end desc "server", "Run the golf app" def server `rackup` end desc "compile [DESTINATION]", "Compile the app into a directory" def compile(dir) Golf::Compiler.compile! end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
golf-0.0.8 | lib/golf/cli.rb |
golf-0.0.5 | lib/golf/cli.rb |
golf-0.0.4 | lib/golf/cli.rb |
golf-0.0.3 | lib/golf/cli.rb |
golf-0.0.2 | lib/golf/cli.rb |
golf-0.0.1 | lib/golf/cli.rb |