id = "base32" name = "base32" description = "Base32 encode or decode data and print to standard output." executables = ["base32"] [commands] format = 1 label = "Base32 encode or decode" description = "Encode or decode a file (or standard input)." quality = "ai-draft" base = "fig:base32" 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/base32.ts" license = "MIT" [[commands.field]] id = "file" label = "File" type = "path" position = 0 path = { kind = "file", role = "input" } sources = ["fig"] [[commands.field]] id = "decode" label = "Decode" type = "boolean" option = ["-d", "--decode"] sources = ["fig"] [[commands.field]] id = "ignore_garbage" label = "Ignore non-alphabet characters" type = "boolean" option = ["-i", "--ignore-garbage"] sources = ["fig"] [[commands.field]] id = "wrap" label = "Wrap columns (0 disables)" type = "integer" option = ["-w", "--wrap"] sources = ["fig"] [[commands.task]] id = "encode" label = "Encode a file" fields = ["file", "wrap"] required = ["file"] [[commands.task]] id = "decode" label = "Decode a file" fields = ["file", "decode", "ignore_garbage"] required = ["file", "decode"] set = { decode = [true] } [[commands.group]] id = "basic" label = "Basic" fields = ["file", "decode", "ignore_garbage", "wrap"]