id = "gnuplot"
name = "gnuplot"
homepage = "https://gnuplot.info/"
description = "An interactive, command-line plotting program."
executables = ["gnuplot"]
[dotfiles]
paths = [
"~/.gnuplot",
"~/.config/gnuplot/gnuplotrc",
]
secret = []
side_effect = false
[commands]
format = 1
label = "Run gnuplot script"
description = "Load script files or run inline commands, then exit. Terminal-specific X11 options are left out."
quality = "ai-draft"
parser = { end_of_options = "--", interleave = "permute", long_equals = false, short_attached = false, short_bundles = false }
[[commands.source]]
id = "man"
kind = "manual"
url = "https://manpages.debian.org/bookworm/gnuplot-nox/gnuplot.1.en.html"
revision = "5.4.4"
evidence = """
gnuplot [X11 options] [options] [file ...]
-p, --persist lets plot windows survive after main gnuplot
-d, --default settings. Do not read from gnuplotrc or
-e "command list" executes the requested commands
-s, --slow wait for slow font initialization rather than
"""
[[commands.field]]
id = "files"
label = "Script files"
type = "path"
position = 0
multiple = true
path = { kind = "file", role = "input", must_exist = true }
sources = ["man"]
[[commands.field]]
id = "command"
label = "Commands"
description = "Gnuplot commands to run before loading the next file, for example: set terminal png; plot sin(x)."
type = "string"
option = ["-e"]
sources = ["man"]
[[commands.field]]
id = "persist"
label = "Keep plot windows open"
type = "boolean"
option = ["--persist", "-p"]
sources = ["man"]
[[commands.field]]
id = "default"
label = "Skip gnuplotrc"
type = "boolean"
option = ["--default", "-d"]
sources = ["man"]
[[commands.field]]
id = "slow"
label = "Wait for fonts"
type = "boolean"
option = ["--slow", "-s"]
sources = ["man"]
[[commands.task]]
id = "run-script"
label = "Run script"
fields = ["files", "persist"]
required = ["files"]
[[commands.task]]
id = "inline"
label = "Run inline commands"
fields = ["command", "persist"]
required = ["command"]
[[commands.group]]
id = "basic"
label = "Basic"
fields = ["files", "command", "persist"]
[[commands.group]]
id = "advanced"
label = "Advanced"
fields = ["default", "slow"]