Sha256: 8e2f2437f3d7dd0b656cb34ff41d4d51a2871b78a6ba7e98bd604a72f4b9eb4a

Contents?: true

Size: 1.83 KB

Versions: 6

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

6 entries across 6 versions & 1 rubygems

Version Path
faastruby-0.5.12 lib/faastruby/cli/commands/help.rb
faastruby-0.5.11 lib/faastruby/cli/commands/help.rb
faastruby-0.5.10 lib/faastruby/cli/commands/help.rb
faastruby-0.5.9 lib/faastruby/cli/commands/help.rb
faastruby-0.5.8 lib/faastruby/cli/commands/help.rb
faastruby-0.5.7 lib/faastruby/cli/commands/help.rb