Update cheatsheets

This commit is contained in:
ivuorinen
2025-08-31 00:21:41 +00:00
parent 5985fac848
commit af1e54b296
12 changed files with 83 additions and 36 deletions

View File

@@ -11,15 +11,15 @@ source: https://github.com/tldr-pages/tldr.git
- Execute a Ruby script:
`ruby {{script.rb}}`
`ruby {{path/to/script.rb}}`
- Execute a single Ruby command in the command-line:
`ruby -e {{command}}`
`ruby -e "{{command}}"`
- Check for syntax errors on a given Ruby script:
`ruby -c {{script.rb}}`
`ruby -c {{path/to/script.rb}}`
- Start the built-in HTTP server on port 8080 in the current directory:
@@ -29,6 +29,6 @@ source: https://github.com/tldr-pages/tldr.git
`ruby -I {{path/to/library_folder}} -r {{library_require_name}} {{path/to/bin_folder/bin_name}}`
- Display Ruby version:
- Display version:
`ruby -v`
`ruby {{[-v|--version]}}`