Overview

Cookbook

Here we will try to show practical information, recipes and examples of various subjects.

Command Line Flags Galore*

Rye Command Line Flags Galore

Rye is a versatile programming language with a rich set of command line flags that can be combined in various ways to enhance your development experience. This guide explores the many flags available in Rye and demonstrates how they can be used together to solve different problems.

Basic Command Line Flags

Flag Description
-do <code> Evaluates Rye code after loading a file or last save
-sdo <code> Same as -do but in silent mode (doesn’t display return values)
-lang <dialect> Select a dialect/language (rye, eyr, math)
-ctx <context> Enter a specific context or context chain
-silent Console doesn’t display return values
-stin <mode> Inject first value from stdin (modes: no, all, a)
-console Enters console after a file is evaluated
-dual Starts REPL in dual-mode with two parallel panels
-template Process file as a template, evaluating Rye code in {{ }} blocks
-help Displays help message
Flag Description
-seccomp-profile <profile> Seccomp profile to use: strict, readonly
-seccomp-action <action> Action on restricted syscalls: errno, kill, trap, log

Command Patterns

Rye supports several command patterns:

Using Rye*

Rye binary tries to not be just a language runtime, but a useful tool. The console also tries to be more than just REPL, but also place where you can explore and introspect tha language and your ideas.

GUI: Rye-Fyne

Rye integrates with pure Go GUI library Fyne. Fyne is lightweight and works on Mac, Linux, Windows and mobile platforms. Fyne bindings are automatically generated by a tool called ryegen and so follow the Fyne API.

Server side*

Rye was primarily made to handle backend, shell, server-side tasks.

Working with*

Examples for how various smaller compontents of Rye runtime work.

Deployment*

There are some interesting options for deploying apps. On proff of concept stage at this point.

Improving Rye*

If you want to contribute, or just better understand the internals.