Sha256: 5159d17acfd9a6adef46e01e619669b51d6141522755c0e69f7bd91a067de127

Contents?: true

Size: 1001 Bytes

Versions: 7

Compression:

Stored size: 1001 Bytes

Contents

module Stastic::Command
  class Help < Base

    def index
      print usage
    end

    private

      def usage
        <<-EOF
stastic (#{Stastic::VERSION}) - command-line tool for managing your Stastic sites

Available Commands
------------------

  stastic help                     # You're looking at it!
  stastic create [name]            # Create a site (using the current directory)
  stastic publish                  # Publish the site
  stastic info                     # Show info about the current site
  stastic list                     # List sites associated with your account
  stastic rename <name>            # Rename the site (name.stastic.com)
  stastic domains:add <domain>     # Add a domain to the site (example.com)
  stastic domains:remove <domain>  # Remove a domain from the site
  stastic preview                  # Start local HTTP server
  stastic set site_root=<path>     # Set the path for your document root folder (defaults to ./)

        EOF
      end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
stastic-0.2.7 lib/stastic/commands/help.rb
stastic-0.2.6 lib/stastic/commands/help.rb
stastic-0.2.5 lib/stastic/commands/help.rb
stastic-0.2.4 lib/stastic/commands/help.rb
stastic-0.2.3 lib/stastic/commands/help.rb
stastic-0.2.2 lib/stastic/commands/help.rb
stastic-0.2.1 lib/stastic/commands/help.rb