[CLI] Allow a parameter to run the new:project command with default values
See original GitHub issueIt would be great to have a parameter like -y
in the project:new
command so when we run
boost project:new my-boosted-project -y
The CLI doesn’t ask the user for inputs and everything is created with default values
Current behavior
> boost new:project my-boosted-project
? What's your project description? (default: "")
> Intro
? What's the first version? (default: 0.1.0)
> Intro
? Who's the author? (default: "")
> Intro
? What's the website? (default: "")
> Intro
? What license will you be publishing this under? (default: MIT)
> Intro
? What's the URL of the repository? (default: "")
> Intro
? What's the package name of your provider infrastructure library?
> Intro
(AWS)
ℹ boost new 🚧
✔ Creating project root
✔ Generating config files
✔ Installing dependencies
ℹ Project generated!
expected behavior
> boost new:project my-boosted-project -y
ℹ boost new 🚧
✔ Creating project root
✔ Generating config files
✔ Installing dependencies
ℹ Project generated!
I propose -y
because that’s kind of standard in CLIs for yes to all
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
ng new - Angular
Option Description Value Type Default Value
‑‑commit Initial git repository commit information. boolean true
‑‑directory The directory name to create the workspace in. string
‑‑force Force...
Read more >dotnet new <TEMPLATE> - .NET CLI - Microsoft Learn
The dotnet new command creates new .NET projects based on the specified template.
Read more >Optional CLI Arguments - Typer - tiangolo
Argument (None) (the new "default" value) is None , Typer knows that this is an optional CLI argument, if no value is provided...
Read more >Build a Command Line Application with Node.js
js CLI application, accept arguments (parameters), and how to authenticate an API from the command line using OAuth 2.0 and PKCE. Build Your ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ideally, when we had the
local provider
, it would make more sense to have that one by default@MYF95, I think it makes sense to keep AWS as the default provider. I could bet it will be the default for long, just because it is the platform we have invested more energy, so it plays with an advantage over the others.
Once we have more providers in place, we can force the user to set a provider when running the command using
-y
Like:
so you would need to run: