|
| 1 | +const completionSpec: Fig.Spec = { |
| 2 | + name: "shasum", |
| 3 | + description: "Print or Check SHA Checksums", |
| 4 | + args: { |
| 5 | + name: "FILE", |
| 6 | + description: |
| 7 | + "Files to compute/check SHA checksums. With no FILE, or when FILE is -, read standard input", |
| 8 | + template: "filepaths", |
| 9 | + isOptional: true, |
| 10 | + isVariadic: true, |
| 11 | + }, |
| 12 | + options: [ |
| 13 | + { |
| 14 | + name: ["-a", "--algorithm"], |
| 15 | + description: "Select SHA algorithm", |
| 16 | + args: { |
| 17 | + suggestions: [ |
| 18 | + { name: "1", description: "SHA-1 (default)" }, |
| 19 | + { name: "224", description: "SHA-224" }, |
| 20 | + { name: "256", description: "SHA-256" }, |
| 21 | + { name: "384", description: "SHA-384" }, |
| 22 | + { name: "512", description: "SHA-512" }, |
| 23 | + { name: "512224", description: "SHA-512/224" }, |
| 24 | + { name: "512256", description: "SHA-512/256" }, |
| 25 | + ], |
| 26 | + }, |
| 27 | + }, |
| 28 | + { |
| 29 | + name: ["-b", "--binary"], |
| 30 | + description: "Read in binary mode", |
| 31 | + }, |
| 32 | + { |
| 33 | + name: ["-c", "--check"], |
| 34 | + description: "Read SHA sums from the FILEs and check them", |
| 35 | + }, |
| 36 | + { |
| 37 | + name: "--tag", |
| 38 | + description: "Create a BSD-style checksum", |
| 39 | + }, |
| 40 | + { |
| 41 | + name: ["-t", "--text"], |
| 42 | + description: "Read in text mode (default)", |
| 43 | + }, |
| 44 | + { |
| 45 | + name: ["-U", "--UNIVERSAL"], |
| 46 | + description: |
| 47 | + "Read in Universal Newlines mode - produces same digest on Windows/Unix/Mac", |
| 48 | + }, |
| 49 | + { |
| 50 | + name: ["-0", "--01"], |
| 51 | + description: |
| 52 | + "Read in BITS mode - ASCII '0' as 0-bit, ASCII '1' as 1-bit, others ignored", |
| 53 | + }, |
| 54 | + { |
| 55 | + name: "--ignore-missing", |
| 56 | + description: "Don't fail or report status for missing files", |
| 57 | + }, |
| 58 | + { |
| 59 | + name: ["-q", "--quiet"], |
| 60 | + description: "Don't print OK for each successfully verified file", |
| 61 | + }, |
| 62 | + { |
| 63 | + name: ["-s", "--status"], |
| 64 | + description: "Don't output anything, status code shows success", |
| 65 | + }, |
| 66 | + { |
| 67 | + name: "--strict", |
| 68 | + description: "Exit non-zero for improperly formatted checksum lines", |
| 69 | + }, |
| 70 | + { |
| 71 | + name: ["-w", "--warn"], |
| 72 | + description: "Warn about improperly formatted checksum lines", |
| 73 | + }, |
| 74 | + { |
| 75 | + name: ["-h", "--help"], |
| 76 | + description: "Display help and exit", |
| 77 | + }, |
| 78 | + { |
| 79 | + name: ["-v", "--version"], |
| 80 | + description: "Output version information and exit", |
| 81 | + }, |
| 82 | + ], |
| 83 | +}; |
| 84 | + |
| 85 | +export default completionSpec; |
0 commit comments