Summary
Add a flag to fedify init that controls whether git init is run in the newly created project directory.
Motivation
Most users initialize a Git repository immediately after scaffolding a new project. Requiring a manual git init step is unnecessary friction. Other CLI scaffolding tools (e.g., npm create vite, cargo new) handle this automatically.
Proposed behavior (draft)
One possible approach:
--git-init: always run git init
--skip-git-init: never run git init
- Neither flag provided: prompt the user interactively
- Both flags provided: prompt the user interactively (conflict)
Alternatively, only one flag could be added and the other made the default (e.g., run git init by default, with --skip-git-init to opt out — or vice versa).
The exact design is open for discussion.
Summary
Add a flag to
fedify initthat controls whethergit initis run in the newly created project directory.Motivation
Most users initialize a Git repository immediately after scaffolding a new project. Requiring a manual
git initstep is unnecessary friction. Other CLI scaffolding tools (e.g.,npm create vite,cargo new) handle this automatically.Proposed behavior (draft)
One possible approach:
--git-init: always rungit init--skip-git-init: never rungit initAlternatively, only one flag could be added and the other made the default (e.g., run
git initby default, with--skip-git-initto opt out — or vice versa).The exact design is open for discussion.