CLI — init
aynig initaynig init bootstraps the current git repository with the files and folders
that AYNIG expects.
It is safe to re-run. Existing files are left in place and missing pieces are created.
Behavior
- Requires the current directory to be a git repository.
- Creates
.dwp/if it does not already exist. - Creates
.dwp/command/if it does not already exist. - Creates
.dwp/COMMANDS.mdonly when.dwp/is newly created. - Creates
.dwp/CONTRACT.mdwhen it is missing. - Creates
.dwp/command/cleanwhen it is missing. - Creates
.worktrees/when it is missing. - Ensures
.worktrees/and.dwp/logs/are present in.gitignore. - Skips existing files instead of overwriting them.
Options
This command has no flags.
Files Created
Depending on what already exists, aynig init may create:
.dwp/.dwp/COMMANDS.md.dwp/CONTRACT.md.dwp/command/.dwp/command/clean.worktrees/.gitignoreentries for.worktrees/and.dwp/logs/
Examples
Initialize the current repository:
aynig initInitialize after creating a new git repo:
git init && aynig initRe-run initialization to fill in missing files without overwriting existing ones:
aynig init