Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI: consider defaulting to dev command when in a quarkus project #16155

Closed
FroMage opened this issue Mar 31, 2021 · 7 comments
Closed

CLI: consider defaulting to dev command when in a quarkus project #16155

FroMage opened this issue Mar 31, 2021 · 7 comments
Labels
area/cli Related to quarkus cli (not maven/gradle/etc.) kind/enhancement New feature or request

Comments

@FroMage
Copy link
Member

FroMage commented Mar 31, 2021

ATM it lists the available commands, but there's already qs --help for that.

It could be a nicer default to default to qs dev if the current CWD is a quarkus project, no?

And bonus points: open browser on the DEV UI?

@FroMage FroMage added kind/enhancement New feature or request area/cli Related to quarkus cli (not maven/gradle/etc.) labels Mar 31, 2021
@maxandersen
Copy link
Member

How do you quickly decide a project is a Quarkus project ?

@maxandersen
Copy link
Member

Open browser on dev/UI I'm not following...what if it's a command mode or pure websocket there is no devui...should be a better thing devmode itself in Quarkus would do that...?

@FroMage
Copy link
Member Author

FroMage commented Apr 1, 2021

How do you quickly decide a project is a Quarkus project ?

Well you already do that, don't you? Since I've seen the CLI fire up gradle or mvn.

Open browser on dev/UI I'm not following...what if it's a command mode or pure websocket there is no devui...should be a better thing devmode itself in Quarkus would do that...?

Perhaps, true.

@maxandersen
Copy link
Member

Well you already do that, don't you? Since I've seen the CLI fire up gradle or mvn.

that happens because user explicit asks for a command to execute.

That said I'm not really against the idea as another thing I would like to add is #11516 so you can just run qs build or qs dev in any subdirectory of a project. having that then "qs" anywhere would bring you into devmode.

which I guess isn't a bad thing - but for me getting help printed is just the default experience I have with other clis...lets me discover what it can do more.

maybe if we did something like print a single line info in this default case:

$ qs
No command found, running devmode. Run qs --help for more options.
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< org.acme:code-with-quarkus >---------------------
[INFO] Building code-with-quarkus 1.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------

wdyt?

@FroMage
Copy link
Member Author

FroMage commented Apr 1, 2021

for me getting help printed is just the default experience I have with other clis...lets me discover what it can do more.

Sure, but other CLIs don't really have any logical default action, perhaps? This sorta feels like one of those "oh you know what I mean" when you type it.

$ qs
No command found, running devmode. Run qs --help for more options.

That looks perfectly fine to me :)

@ebullient
Copy link
Member

ebullient commented May 13, 2021

hmmm. maybe.. if there was no other output that would scroll the buffer so you would know what happened.. maybe. but I could just as easily see the default action as a one-and-done build (rather than dev).. if you are already in a quarkus project somewhere

@maxandersen
Copy link
Member

doing quarkus dev is not that hard vs being a noob trying out quarkus for the first time possibly in a directory with a pom/build.graadle/etc. around from something non-quarkus your first quarkus experience is a fail rather than a friendly guidance of quarkus cli help text letting you know what you can do.

Thus for now closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli Related to quarkus cli (not maven/gradle/etc.) kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants