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.

review quarkus cli command / flag structure

See original GitHub issue

current cli outline looks like this:

Usage: quarkus [-ehV] [--verbose] [COMMAND]
  -e, --errors    Produce execution error messages.
  -h, --help      Show this help message and exit.
  -V, --version   Print version information and exit.
      --verbose   Verbose mode.
Commands:
  build             Build your quarkus project
  clean             Clean current project
  create            Create a new quarkus project.
  create-jbang      Create a new quarkus jbang project.
  list              List installed (default) or installable extensions.
  platforms         List imported (default) or all available Quarkus platforms.
  add               Add extension(s) to current project.
  remove, rm        Remove an extension from this project.
  dev               Execute project in live coding dev mode
  create-extension  Creates the base of a Quarkus extension in different layout depending of the options and environment.

they currently can be grouped in following categories:

project creation

create, create-jbang, create-extension

imo. create-jbang should be a --jbang flag instead of its own command.

platform/extension query/manipulation

list,add,remove/rm platforms

kinda core to what we would like the cli to do but feels a bit weird we have list/add/remove/rm for extensions but then a separate platform command.

dev time commands

build, clean, dev

force: they abstract away wether you are doing maven or gradle (in future jbang could be included here)

weakness: you cant express clean build - they always end up as two commands … missing remote dev

missing commands/ideas:

update - would check if quarkus has a newer release and update the corresponding build artifact.

validate/lint - be able to see if using out-of-platform-bounds artifacts.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:28 (28 by maintainers)

github_iconTop GitHub Comments

1reaction
ia3andycommented, Apr 15, 2021

If too confusing, we could make the layout part of the options or different subcommands create-extension quarkus-core/standalone/quarkiverse or something, I am not against it.

1reaction
aloubyanskycommented, Apr 15, 2021

Trying to use shared option groups (e.g. the GAV groups for create and create-cli) is a little awkward when it comes to specify defaults because we use a different default “code-with-quarkus” vs. “cli-with-quarkus” … I’m tempted to simplify and either use “code-with-quarkus” always.

That makes sense, IMO, especially if it allows reusing some options and code.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Building Quarkus apps with Quarkus Command Line Interface ...
The quarkus command lets you create projects, manage extensions and do essential build and dev commands using the underlying project build tool.
Read more >
Developing and compiling your Quarkus applications with ...
This guide describes how to create a Red Hat build of Quarkus project by using the Apache Maven plug-in. Where applicable, alternative ...
Read more >
picocli - a mighty tiny command line interface
When this flag is set, the first unmatched argument and all subsequent command line arguments are added to the unmatched arguments list returned...
Read more >
Quarkus - Jerome Boyer's Personal Site
Quarkus CLI lets you create projects, manage extensions and do essential build and dev commands using the underlying project's build tool.
Read more >
Kubernetes Native Java with Quarkus - InfoQ
Building a native executable is as easy as adding a command-line flag to the build. We created Quarkus to run Java applications more ......
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