Sha256: 133253ead99a523d513192e016220574387b884a43a479df60fbf5822913f9bf

Contents?: true

Size: 729 Bytes

Versions: 2

Compression:

Stored size: 729 Bytes

Contents

RSpec.describe 'teletype' do
  xit "prints available commands and global options" do
    command = "teletype"

    out = `#{command}`

    expect(out).to eq(<<-OUT)
#{TTY::CLI.top_banner}Commands:
  teletype add COMMAND_NAME [OPTIONS]  # Add a command to the command line app.
  teletype help [COMMAND]              # Describe available commands or one specific command
  teletype new PROJECT_NAME [OPTIONS]  # Create a new command line app skeleton.
  teletype version                     # TTY version

Options:
      [--no-color]                 # Disable colorization in output.
  -r, [--dry-run], [--no-dry-run]  # Run but do not make any changes.
      [--debug], [--no-debug]      # Run with debug logging.

OUT
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tty-0.8.1 spec/integration/start_spec.rb
tty-0.8.0 spec/integration/start_spec.rb