forked from microsoft/playwright-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: provide jbang-catalog to run playwright cli (microsoft#519)
Co-authored-by: Max Rydahl Andersen <[email protected]>
- Loading branch information
1 parent
fb50870
commit 04419c7
Showing
2 changed files
with
27 additions
and
0 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,10 @@ | ||
{ | ||
"catalogs": {}, | ||
"aliases": { | ||
"playwright": { | ||
"script-ref": "scripts/playwright.java", | ||
"description": "Playwright lets you automate Chromium, Firefox and Webkit with a single API. \nWith this cli you can install, trace, generate pdf and screenshots and more.\nExample on how to record and run a script:\n```\n jbang playwright@microsoft/playwright-java codegen -o Example.java`\n jbang --deps com.microsoft.playwright:playwright:RELEASE Example.java\n```" | ||
} | ||
}, | ||
"templates": {} | ||
} |
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,17 @@ | ||
///usr/bin/env jbang "$0" "$@" ; exit $? | ||
//DEPS com.microsoft.playwright:playwright:RELEASE | ||
//DESCRIPTION Playwright lets you automate Chromium, Firefox and Webkit with a single API. | ||
//DESCRIPTION With this cli you can install, trace, generate pdf and screenshots and more. | ||
//DESCRIPTION | ||
//DESCRIPTION Example on how to record and run a script: | ||
//DESCRIPTION ``` | ||
//DESCRIPTION jbang playwright@microsoft/playwright-java codegen -o Example.java` | ||
//DESCRIPTION jbang --deps com.microsoft.playwright:playwright:RELEASE Example.java | ||
//DESCRIPTION ``` | ||
|
||
public class playwright { | ||
|
||
public static void main(String... args) throws Exception { | ||
com.microsoft.playwright.CLI.main(args); | ||
} | ||
} |