mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
jbang: add Spanish translation (#12067)
* jbang: add Spanish translation * Update jbang.md * Update pages.es/common/jbang.md Co-authored-by: Alejandro Cervera <96702705+tricantivu@users.noreply.github.com> * Update jbang.md * Update jbang.md * Update pages.es/common/jbang.md * Update pages.es/common/jbang.md Co-authored-by: Alejandro Cervera <96702705+tricantivu@users.noreply.github.com> * Update pages.es/common/jbang.md Co-authored-by: Alejandro Cervera <96702705+tricantivu@users.noreply.github.com> * Update pages.es/common/jbang.md Co-authored-by: Alejandro Cervera <96702705+tricantivu@users.noreply.github.com> * Update pages.es/common/jbang.md Co-authored-by: Alejandro Cervera <96702705+tricantivu@users.noreply.github.com> * Update pages.es/common/jbang.md Co-authored-by: Alejandro Cervera <96702705+tricantivu@users.noreply.github.com> * Update pages.es/common/jbang.md Co-authored-by: Alejandro Cervera <96702705+tricantivu@users.noreply.github.com> --------- Co-authored-by: Alejandro Cervera <96702705+tricantivu@users.noreply.github.com> Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
This commit is contained in:
parent
561a364e0d
commit
c5ae680e18
1 changed files with 37 additions and 0 deletions
37
pages.es/common/jbang.md
Normal file
37
pages.es/common/jbang.md
Normal file
|
@ -0,0 +1,37 @@
|
|||
# jbang
|
||||
|
||||
> Crea, edita y ejecuta fácilmente programas en Java autocontenidos de sólo código fuente.
|
||||
> Ver también: `java`.
|
||||
> Más información: <https://www.jbang.dev/documentation/guide/latest/cli/jbang.html>.
|
||||
|
||||
- Inicializa una clase en Java simple:
|
||||
|
||||
`jbang init {{ruta/al/archivo.java}}`
|
||||
|
||||
- Inicializa una clase en Java (útil para scripts):
|
||||
|
||||
`jbang init --template={{cli}} {{ruta/al/archivo.java}}`
|
||||
|
||||
- Utiliza `jshell` para explorar y utilizar un script y cualquier dependencia en un editor REPL:
|
||||
|
||||
`jbang run --interactive`
|
||||
|
||||
- Configura un proyecto temporal para editar un script en un entorno de desarrollo integrado:
|
||||
|
||||
`jbang edit --open={{codium|code|eclipse|idea|netbeans|gitpod}} {{ruta/al/script.java}}`
|
||||
|
||||
- Ejecuta un fragmento de código en Java (Java 9 y posteriores):
|
||||
|
||||
`{{echo 'Files.list(Paths.get("/etc")).forEach(System.out::println);'}} | jbang -`
|
||||
|
||||
- Ejecuta aplicación de línea de comandos:
|
||||
|
||||
`jbang {{ruta/al/archivo.java}} {{comando}} {{arg1 arg2 ...}}`
|
||||
|
||||
- Instala un script en un directorio en el valor de la variable de entorno `PATH` del usuario actual:
|
||||
|
||||
`jbang app install --name {{nombre_del_comando}} {{ruta/al/script.java}}`
|
||||
|
||||
- Instala una versión específica del JDK para utilizarla con `jbang`:
|
||||
|
||||
`jbang jdk install {{versión}}`
|
Loading…
Add table
Reference in a new issue