<commit_before>@announce
Feature: Generate init task

  End-user generation of a repoman configuration

  Example commands:

      repo task generate:init .repoman
      repo task generate:init .
      repo task generate:init repoman --force --verbose

  Scenario: Specify path on the command line
    When I run `repo task generate:init nodefault --no-config --verbose`
    Then the exit status should be 0
    Then the output should contain:
      """
      creating initial file structure
      """
    And the following files should exist:
      | nodefault/.gitignore                       |
      | nodefault/assets/.gitignore                |
      | nodefault/global/default/asset.conf        |
      | nodefault/tasks/.gitignore                 |

  Scenario: Path not specified
    When I run `repo task generate:init --no-config`
    Then the exit status should be 1
    Then the output should contain:
      """
      repo init requires at least 1 argument
      """

  Scenario: Config file not found
    When I run `repo task generate:init . --config=BadConfig.conf`
    Then the exit status should be 1
    Then the output should contain:
      """
      config file not found
      """<commit_msg>update init.feature for removed .gitignore<commit_after>@announce
Feature: Generate init task

  End-user generation of a repoman configuration

  Example commands:

      repo task generate:init .repoman
      repo task generate:init .
      repo task generate:init repoman --force --verbose

  Scenario: Specify path on the command line
    When I run `repo task generate:init nodefault --no-config --verbose`
    Then the exit status should be 0
    Then the output should contain:
      """
      creating initial file structure
      """
    And the following files should exist:
      | nodefault/assets/.gitignore                |
      | nodefault/global/default/asset.conf        |
      | nodefault/tasks/.gitignore                 |

  Scenario: Path not specified
    When I run `repo task generate:init --no-config`
    Then the exit status should be 1
    Then the output should contain:
      """
      repo init requires at least 1 argument
      """

  Scenario: Config file not found
    When I run `repo task generate:init . --config=BadConfig.conf`
    Then the exit status should be 1
    Then the output should contain:
      """
      config file not found
      """
{'fraction_non_alphanumeric': 0.06827643630308076, 'fraction_numerical': 0.0033305578684429643, 'mean_word_length': 2.238544474393531, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7642313', 'n_tokens_mistral': 623, 'n_tokens_neox': 603, 'n_words': 255}