GROOVY(1)

πŸ’– NAME πŸ’–

Groovy β€” the agile dynamic language for the Java Virtual Machine 🫢✨ (it's a groovy(1) situation, bestie, section 1 of the General Commands Manual, iykyk)


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the whole vibe β€” the usage is literally this:

groovy [options] [args]

and then, options: πŸ‘‡ (every single one, no skips, we do not gatekeep πŸ’…)

✨ options: ✨

  • -D, --define <name=value> β€” you're defining a system property. that's the whole thing. go off. πŸŽ€
  • -a, --autosplit <splitPattern> β€” automatically splits the current line for you (and lowkey the default is '\s', so it just knows) βœ‚οΈ
  • -c, --encoding <charset> β€” say which encoding the files are in. be specific, bestie, files deserve to be understood 🧚
  • -d, --debug β€” debug mode!! it will print out full stack traces, like the entire dramatic backstory, no tea left unspilled πŸ’€
  • -e <script> β€” specify a command line script right there on the command line. main character energy ✨
  • -h, --help β€” usage information, aka the cheat sheet πŸ‘‘
  • -i <extension> β€” modifies files in place, and it creates a backup if you give it an extension (e.g. '.bak'). protect yourself, queen πŸ™ˆ
  • -l <port> β€” listens on a port and processes inbound lines. it's giving server era 🌈
  • -n β€” processes files line by line πŸ“„
  • -p β€” processes files line by line and prints the result. yes, both. we love a multitasker πŸ’…
  • -v, --version β€” displays the Groovy and JVM versions, so you can flex which ones you're running ⭐

πŸ”₯ COMMANDS πŸ”₯

groovy:

the command that runs a set of Groovy statements β€” either ones you typed on the command line (with -e), or ones stored in a text file whose name you hand it on the command. πŸ“œ

example:

groovy -e 'System.in.readLines().each { println it }'

literally iconic. that one line ate. πŸ“

groovysh:

a terminal-based interpreter for Groovy. living in your shell, being cozy πŸšπŸ’œ

groovyConsole:

a GUI interpreter for composing Groovy interactively. windows and buttons but make it Groovy πŸͺŸβœ¨

java2groovy:

the java2groovy tool reads class and interface definitions written in the Java programming language and converts them into groovy source files. glow-up service, fr fr πŸ¦‹


🌸 SEE ALSO 🌸


πŸ’œ AUTHOR πŸ’œ

this manual page was generated using help2man and edited by Varun Hiremath <varun@debian.org>, for the Debian project (but may be used by others). king behaviour, honestly πŸ‘‘


ok that's the whole page bestie, go forth and groovy 🫢

December 2007, from the General Commands Manual (section 1) β€” that's the source and the date, wrapped up with a bow πŸŽ€πŸ’–