https://github.com/jbangdev/jbang-examples
Example repository for jbang
https://github.com/jbangdev/jbang-examples
gitpod java jbang
Last synced: 9 months ago
JSON representation
Example repository for jbang
- Host: GitHub
- URL: https://github.com/jbangdev/jbang-examples
- Owner: jbangdev
- Created: 2020-06-20T05:32:27.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-12-23T11:44:53.000Z (about 2 years ago)
- Last Synced: 2024-04-22T13:21:58.388Z (over 1 year ago)
- Topics: gitpod, java, jbang
- Language: PowerShell
- Homepage: https://jbang.dev
- Size: 11.1 MB
- Stars: 15
- Watchers: 4
- Forks: 14
- Open Issues: 4
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
[](https://gitpod.io/#https://github.com/jbangdev/jbang-examples)
[](https://che.openshift.io/f?url=https://github.com/jbangdev/jbang-examples)
## JBang Examples
Repository with various [`jbang`](https://jbang.dev) examples.
To use them have `jbang` [installed](https://jbang.dev/download) or open this repository in [gitpod.io](https://gitpod.io/#https://github.com/jbangdev/jbang-examples)
and try it out directly in your browser.
### Editing in gitpod.io
Once the project is open in gitpod.io you can run the individual examples using `jbang ` or simply run it `.\`, for example:
```
./examples/helloworld.java GitPod!
Hello GitPod!
```
For editing you get the best experience by using `--edit-live`. For example to edit `hello.java` do the following:
```
jbang --edit-live examples/helloworld.java
```
The output will print a url - open that url and you will have a gitpod.io setup with the resolved java dependencies.