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
.aynig/if it does not already exist. - Creates
.aynig/command/if it does not already exist. - Creates
.aynig/COMMANDS.mdonly when.aynig/is newly created. - Creates
.aynig/CONTRACT.mdwhen it is missing. - Creates
.aynig/command/cleanwhen it is missing. - Creates
.worktrees/when it is missing. - Ensures
.worktrees/and.aynig/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:
.aynig/.aynig/COMMANDS.md.aynig/CONTRACT.md.aynig/command/.aynig/command/clean.worktrees/.gitignoreentries for.worktrees/and.aynig/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