An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/jbangdev/jbang-examples)

[![Che](https://www.eclipse.org/che/contribute.svg)](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.