Skip to content

Commit

Permalink
Also include stream information in CLI project creation
Browse files Browse the repository at this point in the history
This has been done a long while ago for standard apps but I missed to
update the CLI somehow.
  • Loading branch information
gsmet committed Jun 14, 2023
1 parent 33db72d commit f246839
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
3 changes: 2 additions & 1 deletion docs/src/main/asciidoc/_attributes.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Common attributes.
// Common attributes.
// --> No blank lines (it ends the document header)
:project-name: Quarkus
:quarkus-version: ${project.version}
Expand Down Expand Up @@ -55,5 +55,6 @@
:micrometer-registry-guide: https://quarkiverse.github.io/quarkiverse-docs/quarkus-micrometer-registry/dev/index.html
// .
:create-app-group-id: org.acme
:create-cli-group-id: {create-app-group-id}
// .
include::_attributes-local.adoc[]
19 changes: 9 additions & 10 deletions docs/src/main/asciidoc/_includes/devtools/create-cli.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,27 @@
****
[source,bash,subs=attributes+]
----
ifdef::create-cli-group-id[]
ifdef::create-cli-extensions[]
ifdef::create-cli-extensions,create-cli-stream[]
quarkus create cli {create-cli-group-id}:{create-cli-artifact-id} \
endif::[]
ifndef::create-cli-extensions[]
ifndef::create-cli-extensions,create-cli-stream[]
ifndef::create-cli-code[]
quarkus create cli {create-cli-group-id}:{create-cli-artifact-id} \
endif::[]
ifdef::create-cli-code[]
quarkus create cli {create-cli-group-id}:{create-cli-artifact-id}
endif::[]
endif::[]
endif::[]
ifndef::create-cli-group-id[]
ifdef::create-cli-stream[]
ifdef::create-cli-extensions[]
quarkus create cli org.acme:{create-cli-artifact-id} \
--stream={create-cli-stream} \
endif::[]
ifndef::create-cli-extensions[]
ifndef::create-cli-code[]
quarkus create cli org.acme:{create-cli-artifact-id} \
--stream={create-cli-stream} \
endif::[]
ifdef::create-cli-code[]
quarkus create cli org.acme:{create-cli-artifact-id}
--stream={create-cli-stream}
endif::[]
endif::[]
endif::[]
Expand Down Expand Up @@ -61,9 +59,10 @@ _For more information about how to install the Quarkus CLI and use it, please re
[source,bash,subs=attributes+]
----
mvn {quarkus-platform-groupid}:quarkus-maven-plugin:{quarkus-version}:create \
ifdef::create-cli-group-id[]
-DprojectGroupId={create-cli-group-id} \
ifdef::create-cli-stream[]
-DplatformVersion={quarkus-version} \
endif::[]
-DprojectGroupId={create-cli-group-id} \
ifndef::create-cli-group-id[]
-DprojectGroupId=org.acme \
endif::[]
Expand Down

0 comments on commit f246839

Please sign in to comment.