Sha256: 9fe10d07211322fdb825a233edbb535576006a70c85d10cdba950c1ec4d65efd

Contents?: true

Size: 1.11 KB

Versions: 2

Compression:

Stored size: 1.11 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
      """

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
repo_manager-0.7.2 features/actions/help.feature
repo_manager-0.7.1 features/actions/help.feature