id = "ruby" name = "Ruby" homepage = "https://www.ruby-lang.org" description = "A dynamic, open source programming language with a focus on simplicity and productivity." icon = "SimpleIcons:ruby" executables = ["ruby", "irb"] [dotfiles] # https://docs.ruby-lang.org/en/3.3/IRB.html — IRB searches the optional # $XDG_CONFIG_HOME/irb/irbrc and then ~/.irbrc and ~/.config/irb/irbrc. The # latter two are the fixed user paths that can be named without assuming the # optional environment variable; this config ships with Ruby's irb command. paths = ["~/.irbrc", "~/.config/irb/irbrc"] secret = [] side_effect = false [commands] format = 1 label = "Run Ruby" description = "Run a script or an inline expression. Input-processing switches such as -n, -p and -i are left out." quality = "ai-draft" base = "fig:ruby" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = true } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/ruby.ts" license = "MIT" [[commands.field]] id = "expression" label = "Inline script (-e)" type = "string" option = ["-e"] multiple = true sources = ["fig"] [[commands.field]] id = "script" label = "Script file" type = "path" position = 0 path = { kind = "file", role = "input" } sources = ["fig"] [[commands.field]] id = "args" label = "Script arguments" type = "string" position = 1 multiple = true sources = ["fig"] [[commands.field]] id = "check" label = "Check syntax only" type = "boolean" option = ["-c"] sources = ["fig"] [[commands.field]] id = "warnings" label = "Warnings on" type = "boolean" option = ["-w"] sources = ["fig"] [[commands.field]] id = "verbose" label = "Verbose" type = "boolean" option = ["--verbose", "-v"] sources = ["fig"] [[commands.field]] id = "debug" label = "Debug mode" type = "boolean" option = ["--debug", "-d"] sources = ["fig"] [[commands.field]] id = "require" label = "Require library" type = "string" option = ["-r"] multiple = true sources = ["fig"] [[commands.field]] id = "include" label = "Load path" type = "path" option = ["-I"] multiple = true path = { kind = "directory", role = "input" } sources = ["fig"] [[commands.field]] id = "chdir" label = "Change directory first" type = "path" option = ["-C"] path = { kind = "directory", role = "input" } sources = ["fig"] [[commands.task]] id = "run" label = "Run a script" fields = ["script", "args", "warnings", "require", "include"] required = ["script"] [[commands.task]] id = "eval" label = "Run an expression" fields = ["expression", "require"] required = ["expression"] [[commands.task]] id = "syntax" label = "Check syntax" fields = ["script", "check"] required = ["script", "check"] set = { check = [true] } [[commands.group]] id = "basic" label = "Basic" fields = ["script", "args", "expression", "check", "warnings"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["verbose", "debug", "require", "include", "chdir"]