Sha256: 52fc3c962d6e5c64289a41b25e9ea1e26ba9c6ba6089d71ab565207b1c8fb3a7
Contents?: true
Size: 694 Bytes
Versions: 3
Compression:
Stored size: 694 Bytes
Contents
require "optparse" module Tufte module CLI def self.run(command) case command when "init" Tufte.init when "build" Tufte.build when "serve" require "rack" Rack::Server.start when "version", "-v", "--version" puts Tufte::VERSION else puts <<-USAGE Usage: tufte [command] Commands: init Scaffold a new blog in the current directory build Generate HTML pages based on the templates serve Start a development server to host your files locally version Print the current version help Print this message USAGE end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tufte-1.1.0 | lib/tufte/cli.rb |
tufte-1.0.1 | lib/tufte/cli.rb |
tufte-1.0.0 | lib/tufte/cli.rb |