v icon indicating copy to clipboard operation
v copied to clipboard

V init: Add all prompts as flags as well

Open exapsy opened this issue 1 year ago • 1 comments

Adds

Flags on v init:

--description (if '' - empty string, then it's gonna prompt)
--project-version (--version conflicted with v's version, default: 0.0.0)
--license (default: MIT)

Reason / What it fixes:

As a user, I wanted to make a quick bin/sh command that would auto-create a project with v without any prompts, I wanted all to be automatically and the prompts would auto-fill themselves with the information I already had from the script. But prompts preventing that.

Even if there is another way, it feels much more straightforward to just have the prompts accessible as flags, so the user can notice them immediately.

exapsy avatar Jan 07 '24 06:01 exapsy

To suggest a possible alternative, there could be a no-interactive flag to create a project with just the name. Desc, license and version would have to be changed manually in the mod file. Something like this might be used more often than the single flags.

ttytm avatar Feb 12 '24 08:02 ttytm

No, I prefer the flags version that is here.

The ability to give custom values through flags, is easier to script externally, than creating files with specific content.

spytheman avatar Feb 18 '24 05:02 spytheman