The github:init command generates a basic Github directory with starter files including .editorconfig, .gitattributes, .gitignore, and README.md.
vendor/bin/whitecat github:init
The command does not accept any additional options or arguments. It is a self-contained setup process.
To execute the github:init command, run the following:
vendor/bin/whitecat github:init
Generated GitHub Setup
The command performs the following tasks:
- Checks for the existence of the GitHub directory. If it doesn't exist, it creates the directory.
- Copies
.editorconfig,.gitattributes,.gitignore, andREADME.mdfiles to the specified distribution directory.
The command prompts the user for confirmation in the following scenarios:
- If the GitHub directory already exists, the user can choose to continue and override it.
- If any of the starter files 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.