Allow Initializing A Non-Empty Documentation Directory
Problem to solve
I have an existing project that already has a docs directory with images and some output files (i.e. STLS). I would like to initialize this directory using gitbuilding new
, but it seems that is not possible currently.
What happens is the following:
~/repos/poc-stereoscope/docs$ gitbuilding new
This directory is not empty. Build to new sub-dir? [y/N]: N
# Command exits without initializing documentation
$ gitbuilding new
This directory is not empty. Build to new sub-dir? [y/N]: y
Enter subdir name: docs
gitbuilding new only supports creating a single subdirectory to the current folder, not nested directories or full paths
So I am unable to initialize the non-empty directory in any way. I am only able to initialize a higher level empty directory, and then copy the contents into my existing docs
directory.
Who will benefit
Any user who is trying to add gitbuilding docs to a non-empty project directory.
Proposal
When answering y
to the question above, the gitbuilding generated files should be added to an automatically created sub-directory, which is named based on what the user entered. Right now this does not seem to work (is this a bug?).
When the user answers N
to the question above, the user could be presented with a follow-up question that says Build to the current, non-empty directory (may overwrite files)?
Version of GitBuilding you use
- Version: 0.12.2