Sha256: 428fb19f2f2785ac9f9af42824184fa2812a1e290c0873d92c3a2cf4380ccb93

Contents?: true

Size: 603 Bytes

Versions: 3

Compression:

Stored size: 603 Bytes

Contents

require "thor"

module Prez
  class CLI < Thor
    register Prez::Build, "build", "build [NAME]", "Builds the single html presentation from the prez file"
    register Prez::New, "new", "new NAME", "Generates a new presentation"
    register Prez::Start, "start", "start [NAME]", "Launches your browser with the given presentation"

    map "-v" => "version"

    desc "version", "Show the prez version"
    long_desc "
      This can be optionally used as 'prez -v'"
    def version
      say Prez::Version
    end

    class << self
      def exit_on_failure?
        true
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
prez-0.1.2 lib/prez/cli.rb
prez-0.1.1 lib/prez/cli.rb
prez-0.1.0 lib/prez/cli.rb