The github:issue command generates a basic template for GitHub issues, including bug reports and feature requests.
vendor/bin/whitecat github:issue
The command does not accept any additional options or arguments. It is a self-contained setup process.
To execute the github:issue command, run the following:
vendor/bin/whitecat github:issue
The command performs the following tasks:
- Checks for the existence of the GitHub issue directory. If it doesn't exist, it creates the directory.
- Copies
BUG-REPORT.yml,FEATURE-REQUEST.yml, andconfig.ymlfiles to the specified distribution directory.
The command prompts the user for confirmation in the following scenarios:
- If the GitHub issue directory already exists, the user can choose to continue and override it.
- If any of the issue templates or the configuration file already exist, the user can choose to override them.
Upon successful execution, the command outputs a success message.
If any errors occur during file or directory creation, appropriate error messages are displayed.