jbang: add short options (#21628)

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
This commit is contained in:
Emmanuel Ferdman
2026-03-21 06:53:14 +02:00
committed by GitHub
parent 698270a516
commit 1281614d07
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -10,11 +10,11 @@
- Inicializa una clase en Java (útil para scripts):
`jbang init --template={{cli}} {{ruta/al/archivo.java}}`
`jbang init {{[-t|--template]}}={{cli}} {{ruta/al/archivo.java}}`
- Utiliza `jshell` para explorar y utilizar un script y cualquier dependencia en un editor REPL:
`jbang run --interactive`
`jbang run {{[-i|--interactive]}}`
- Configura un proyecto temporal para editar un script en un entorno de desarrollo integrado:
+2 -2
View File
@@ -10,11 +10,11 @@
- Java 클래스 초기화 (스크립팅에 유용):
`jbang init --template={{cli}} {{경로/대상/파일.java}}`
`jbang init {{[-t|--template]}}={{cli}} {{경로/대상/파일.java}}`
- `jshell`을 사용하여 REPL 편집기에서 스크립트 및 의존성을 탐색하고 사용:
`jbang run --interactive`
`jbang run {{[-i|--interactive]}}`
- IDE에서 스크립트를 편집할 수 있도록 임시 프로젝트 설정:
+2 -2
View File
@@ -10,11 +10,11 @@
- 初始化一个 Java 类(用于脚本编写):
`jbang init --template={{cli}} {{路径/到/文件.java}}`
`jbang init {{[-t|--template]}}={{cli}} {{路径/到/文件.java}}`
- 使用 `jshell` 在 REPL 编辑器中探索和使用脚本及其任何依赖项:
`jbang run --interactive`
`jbang run {{[-i|--interactive]}}`
- 设置一个临时项目以在 IDE 中编辑脚本:
+2 -2
View File
@@ -10,11 +10,11 @@
- Initialize a Java class (useful for scripting):
`jbang init --template={{cli}} {{path/to/file.java}}`
`jbang init {{[-t|--template]}}={{cli}} {{path/to/file.java}}`
- Use `jshell` to explore and use a script and any dependencies in a REPL editor:
`jbang run --interactive`
`jbang run {{[-i|--interactive]}}`
- Setup a temporary project to edit a script in an IDE: