https://github.com/yuriytkach/stream-22-demo-app
Demo application for online YouTube stream #22
https://github.com/yuriytkach/stream-22-demo-app
command-line demo-app picocli quarkus youtube-stream
Last synced: 2 months ago
JSON representation
Demo application for online YouTube stream #22
- Host: GitHub
- URL: https://github.com/yuriytkach/stream-22-demo-app
- Owner: yuriytkach
- Created: 2022-11-21T13:02:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-21T13:02:52.000Z (over 2 years ago)
- Last Synced: 2025-01-29T19:47:38.258Z (4 months ago)
- Topics: command-line, demo-app, picocli, quarkus, youtube-stream
- Language: Java
- Homepage:
- Size: 61.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Demo Project for Online Stream #22 - Command Line Apps
Demo project for online stream #22 where a command line application is created that performs different
command based on command line arguments, that are parsed and handled by the Picocli library.## Access to Online Stream on YouTube
To get a link to online stream on YouTube please do the following:
- :moneybag: Make any donation to support my volunteering initiative to help Ukrainian Armed Forces by means described on [my website](https://www.yuriytkach.com/volunteer)
- :email: Write me an [email](mailto:[email protected]) indicating donation amount and time
- :tv: I will reply with the link to the stream on YouTube.Thank you in advance for your support! Слава Україні! :ukraine:
## Technologies
- Quarkus
- Picocli## Running the application in dev mode
You can run your application in dev mode that enables live coding using:
```shell script
./gradlew quarkusDev
```> **_NOTE:_** Quarkus now ships with a Dev UI, which is available in dev mode only at http://localhost:8080/q/dev/.
## Packaging and running the application
The application can be packaged using:
```shell script
./gradlew build
```
It produces the `quarkus-run.jar` file in the `build/quarkus-app/` directory.
Be aware that it’s not an _über-jar_ as the dependencies are copied into the `build/quarkus-app/lib/` directory.The application is now runnable using `java -jar build/quarkus-app/quarkus-run.jar`.
If you want to build an _über-jar_, execute the following command:
```shell script
./gradlew build -Dquarkus.package.type=uber-jar
```The application, packaged as an _über-jar_, is now runnable using `java -jar build/*-runner.jar`.
## Creating a native executable
You can create a native executable using:
```shell script
./gradlew build -Dquarkus.package.type=native
```Or, if you don't have GraalVM installed, you can run the native executable build in a container using:
```shell script
./gradlew build -Dquarkus.package.type=native -Dquarkus.native.container-build=true
```You can then execute your native executable with: `./build/quarkus-picocli-1.0.0-SNAPSHOT-runner`
If you want to learn more about building native executables, please consult https://quarkus.io/guides/gradle-tooling.
## Related Guides
- Picocli with Quarkus ([guide](https://quarkus.io/guides/picocli)): Develop command line applications with Picocli
- Picocli with Spring ([example](https://github.com/remkop/picocli/blob/main/picocli-spring-boot-starter/README.md))
- Picocli small [guide](https://www.baeldung.com/java-picocli-create-command-line-program): Create a Java Command Line Program with Picocli
- Picocli official documentation ([site](https://picocli.info/))