Sha256: 568dc6ebf5d01f103339b241affaacedee9b1625c0b5aeee681721355f9f69a8

Contents?: true

Size: 1.36 KB

Versions: 1

Compression:

Stored size: 1.36 KB

Contents

Feature: Show help on actions

  Show action specific help to STDOUT for a given action

  Example usage:

      repo help list
      repo help task
      repo help help

  Notes

  * abbreviated help general app help is available via the --help option

 Background: Empty configuration file so that we don't read global config locations
   Given an empty file named "repo.conf"

 Scenario Outline: Valid action, help available
    When I run `repo help <action>`
    Then the exit status should be 0
    And its output should match:
      """
      Usage: repo.* <action>
      """
    And its output should match:
      """
      Options:
      """

  Examples:
    | action  |
    | help    |
    | list    |
    | task    |
    | git     |
    | path    |
    | status  |

  Scenario: Missing action
    When I run `repo help`
    Then the exit status should be 0
    And the output should contain:
      """
      no action specified
      """

  Scenario: Invalid action
    When I run `repo help badaction`
    Then the exit status should be 0
    And the output should contain:
      """
      invalid help action
      """

  Scenario: Returning a list of actions for CLI completion
    When I run `repo help --actions`
    Then the exit status should be 0
    And the output should contain:
      """
      help
      list
      task
      path
      status
      git
      """

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
repo_manager-0.7.3 features/actions/help.feature