question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[CLI] Allow a parameter to run the new:project command with default values

See original GitHub issue

It 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:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
alvaroloescommented, Jun 3, 2020

Ideally, when we had the local provider, it would make more sense to have that one by default

1reaction
itrioncommented, May 29, 2020

@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:

> boost new:project my-project -y
Error: when using -y you have to set a provider using the -p argument

so you would need to run:

boost new:project my-project -y -p aws
Read more comments on GitHub >

github_iconTop 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 >
Command-line interface / Commands - Composer
A Dependency Manager for PHP.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found