id = "base64" name = "base64" description = "Encode and decode using Base64 representation." executables = ["base64"] [commands] format = 1 label = "Base64 encode or decode" description = "Encode or decode a file or standard input to a file or terminal." quality = "ai-draft" base = "fig:base64" parser = { end_of_options = "--", interleave = "permute", long_equals = false, short_attached = true, short_bundles = false } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/base64.ts" license = "MIT" [[commands.field]] id = "input" label = "Input file" type = "path" option = ["-i", "--input"] path = { kind = "file", role = "input" } sources = ["fig"] [[commands.field]] id = "output" label = "Output file" type = "path" option = ["-o", "--output"] path = { kind = "file", role = "output" } effect = "overwrite" sources = ["fig"] [[commands.field]] id = "decode" label = "Decode" type = "boolean" option = ["-d", "--decode"] sources = ["fig"] [[commands.field]] id = "break" label = "Line break every N characters" type = "integer" option = ["-b", "--break"] sources = ["fig"] [[commands.task]] id = "encode" label = "Encode a file" fields = ["input", "output", "break"] required = ["input"] [[commands.task]] id = "decode" label = "Decode a file" fields = ["input", "output", "decode"] required = ["input", "decode"] set = { decode = [true] } [[commands.group]] id = "basic" label = "Basic" fields = ["input", "output", "decode", "break"]