id = "cups"
name = "CUPS"
homepage = "https://openprinting.github.io/cups/"
description = "The Common UNIX Printing System."
executables = ["lp", "lpr", "lpoptions", "lpstat"]
[dotfiles]
paths = ["~/.cups/client.conf", "~/.cups/lpoptions"]
secret = []
[commands]
format = 1
label = "Print a file"
description = "Print files with lp. Page ranges, scheduling and -o job options are left out."
quality = "ai-draft"
base = "fig:lp"
parser = { end_of_options = "--", interleave = "permute", long_equals = false, short_attached = true, short_bundles = true }
[[commands.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/lp.ts"
license = "MIT"
[[commands.field]]
id = "files"
label = "Files"
type = "path"
position = 0
multiple = true
path = { kind = "file", role = "input", must_exist = true }
sources = ["fig"]
[[commands.field]]
id = "destination"
label = "Printer"
type = "string"
option = ["-d"]
sources = ["fig"]
[[commands.field]]
id = "copies"
label = "Copies"
type = "integer"
option = ["-n"]
sources = ["fig"]
[[commands.field]]
id = "title"
label = "Job name"
type = "string"
option = ["-t"]
sources = ["fig"]
[[commands.field]]
id = "mail"
label = "Email when completed"
type = "boolean"
option = ["-m"]
sources = ["fig"]
[[commands.field]]
id = "silent"
label = "Silent"
description = "Do not report the resulting job IDs."
type = "boolean"
option = ["-s"]
sources = ["fig"]
[[commands.task]]
id = "print"
label = "Print files"
fields = ["files", "destination", "copies", "title"]
required = ["files"]
[[commands.group]]
id = "basic"
label = "Basic"
fields = ["files", "destination", "copies"]
[[commands.group]]
id = "advanced"
label = "Advanced"
fields = ["title", "mail", "silent"]