-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
406b208
commit fb61a6f
Showing
5 changed files
with
57 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Feature: edit | ||
|
||
Scenario: edit a file should print to std out | ||
* command('jbang init hello.java') | ||
* command('jbang edit hello.java') | ||
* match err == '' | ||
* match out contains '/' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
//usr/bin/env jbang "$0" "$@" ; exit $? | ||
|
||
//DEPS io.quarkus:quarkus-resteasy:999-SNAPSHOT | ||
//DEPS io.quarkus:quarkus-smallrye-openapi:999-SNAPSHOT | ||
// Comment out below to have swagger-ui available at /swagger-ui | ||
// //DEPS io.quarkus:quarkus-swagger-ui:999-SNAPSHOT | ||
// //CONFIG quarkus.swagger-ui.always-include=true | ||
import io.quarkus.runtime.QuarkusApplication; | ||
import io.quarkus.runtime.annotations.QuarkusMain; | ||
|
||
@QuarkusMain | ||
public class HelloWorldMain implements QuarkusApplication { | ||
@Override | ||
public int run(String... args) throws Exception { | ||
System.out.println("Hello World"); | ||
return 10; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
//usr/bin/env jbang "$0" "$@" ; exit $? | ||
|
||
//DEPS io.quarkus:quarkus-resteasy:999-SNAPSHOT | ||
//DEPS io.quarkus:quarkus-smallrye-openapi:999-SNAPSHOT | ||
// Comment out below to have swagger-ui available at /swagger-ui | ||
// //DEPS io.quarkus:quarkus-swagger-ui:999-SNAPSHOT | ||
// //CONFIG quarkus.swagger-ui.always-include=true | ||
|
||
import io.quarkus.runtime.Quarkus; | ||
import io.quarkus.runtime.QuarkusApplication; | ||
|
||
import javax.ws.rs.GET; | ||
import javax.ws.rs.Path; | ||
|
||
import static java.lang.System.*; | ||
import javax.ws.rs.GET; | ||
import javax.ws.rs.Path; | ||
@Path("/hello") | ||
public class {baseName} { | ||
|
||
public static void main(String... args) { | ||
Quarkus.run(args); | ||
} | ||
|
||
@GET | ||
public String sayHello() { | ||
return "hello from Quarkus with jbang.dev"; | ||
} | ||
|
||
} |