Workflow
Initialization Workflow
Recommended
Understand the sequence of operations performed when initializing a project with Custy.
Command
custy initCategory
Initialization
Quick Command
custy initOverviewâ
Running custy init prepares a project by generating the resources that Custy
uses during future operations.
Rather than executing Git workflows immediately, the command creates a customizable project workspace that future commands can reuse.
Workflow Timeline
Initialization Timeline
High-level sequence of operations performed by the initialization workflow.
1
Resolve Options
Determine the effective initialization settings by combining command-line arguments, project configuration, and built-in defaults.
2
Prepare Initialization
Build the initialization context and determine which resources need to be generated.
3
Generate Resources
Create configuration files, templates, and optional example resources according to the selected mode.
4
Handle Existing Files
Preserve or overwrite generated files according to their resource type, force behavior, and supported interactive confirmation settings.
5
Complete Initialization
Finish the initialization process and prepare the project for future Custy commands.
Workflow Stages
1
Resolve Initialization Settings
Determine the effective initialization mode by combining command-line
arguments, project configuration, and Custy's built-in defaults.
2
Build the Initialization Context
Prepare the internal execution context that will be shared by every
generation step during initialization.
3
Generate Project Resources
Generate the selected project resources, including configuration files,
templates, and optional nested example resources depending on the chosen
initialization mode.
4
Merge Packaged Examples
Walk the packaged example tree recursively. Add missing directories and files,
preserve existing example files by default, or overwrite those files when
force behavior is enabled.
5
Finalize Initialization
Complete the initialization process and prepare the project for subsequent
Custy commands.
What's Next?
The next page explains every file and directory created by the initialization workflow.