Sha256: b9d09d357cb6b6d3bb8783a1f5249f69f31bb4e6b3bcff6c94348d4fd79313cb

Contents?: true

Size: 1.83 KB

Versions: 3

Compression:

Stored size: 1.83 KB

Contents

module FaaStRuby
  module Command
    require 'faastruby/cli/base_command'
    class Help < BaseCommand
      def initialize(args)
        @args = args
      end

      def run
        puts "faastRuby CLI - Manage workspaces and functions hosted at faastruby.io"
        puts "Version: #{FaaStRuby::VERSION}"
        puts
        puts "Usage: faastruby [update] [OPTIONS] COMMAND [--help | -h] [ARGS]"
        puts
        puts "To update to the latest version, run: faastruby update"
        puts
        puts "OPTIONS:"
        puts 'help, -h, --help     # Displays this help'
        puts '-v                   # Print version and exit'
        puts '--region tor1        # Specify a region. "tor1" (default) is the only region available'
        puts "\nCOMMANDS:"
        puts %(
Accounts:
  signup
  confirm-account      # Send a token over email for account confirmation
  login
  logout

Functions:
  new                  # Initialize a function in your local machine
  deploy-to            # Deploy a function to a cloud workspace
  remove-from          # Remove a function from a cloud workspace
  run                  # Trigger the function via HTTP endpoint
  update-context       # Update the context data for a function

Projects:
  new-project          # Initialize a project in your local machine
  deploy               # Deploy all functions and static files of a project

Workspaces:
  create-workspace     # Create a cloud workspace
  destroy-workspace    # Erase a workspace from the cloud
  list-workspace       # List what's in a cloud workspace
  cp                   # Copy a static file from your local machine to a cloud workspace
  rm                   # Remove a static file from a cloud workspace
  update-workspace     # Update workspace settings

)
        puts "Run faastruby COMMAND --help for more details."
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
faastruby-0.5.15 lib/faastruby/cli/commands/help.rb
faastruby-0.5.14 lib/faastruby/cli/commands/help.rb
faastruby-0.5.13 lib/faastruby/cli/commands/help.rb