1const completion: Fig.Spec = { 2 name: "my-app", 3 description: "", 4 options: [ 5 { 6 name: "--choice", 7 isRepeatable: true, 8 args: { 9 name: "choice", 10 isOptional: true, 11 suggestions: [ 12 "bash", 13 "fish", 14 "zsh", 15 ], 16 }, 17 }, 18 { 19 name: "--unknown", 20 isRepeatable: true, 21 args: { 22 name: "unknown", 23 isOptional: true, 24 }, 25 }, 26 { 27 name: "--other", 28 isRepeatable: true, 29 args: { 30 name: "other", 31 isOptional: true, 32 }, 33 }, 34 { 35 name: ["-p", "--path"], 36 isRepeatable: true, 37 args: { 38 name: "path", 39 isOptional: true, 40 template: "filepaths", 41 }, 42 }, 43 { 44 name: ["-f", "--file"], 45 isRepeatable: true, 46 args: { 47 name: "file", 48 isOptional: true, 49 template: "filepaths", 50 }, 51 }, 52 { 53 name: ["-d", "--dir"], 54 isRepeatable: true, 55 args: { 56 name: "dir", 57 isOptional: true, 58 template: "folders", 59 }, 60 }, 61 { 62 name: ["-e", "--exe"], 63 isRepeatable: true, 64 args: { 65 name: "exe", 66 isOptional: true, 67 template: "filepaths", 68 }, 69 }, 70 { 71 name: "--cmd-name", 72 isRepeatable: true, 73 args: { 74 name: "cmd_name", 75 isOptional: true, 76 isCommand: true, 77 }, 78 }, 79 { 80 name: ["-c", "--cmd"], 81 isRepeatable: true, 82 args: { 83 name: "cmd", 84 isOptional: true, 85 isCommand: true, 86 }, 87 }, 88 { 89 name: ["-u", "--user"], 90 isRepeatable: true, 91 args: { 92 name: "user", 93 isOptional: true, 94 }, 95 }, 96 { 97 name: ["-H", "--host"], 98 isRepeatable: true, 99 args: { 100 name: "host", 101 isOptional: true, 102 }, 103 }, 104 { 105 name: "--url", 106 isRepeatable: true, 107 args: { 108 name: "url", 109 isOptional: true, 110 }, 111 }, 112 { 113 name: "--email", 114 isRepeatable: true, 115 args: { 116 name: "email", 117 isOptional: true, 118 }, 119 }, 120 { 121 name: ["-h", "--help"], 122 description: "Print help", 123 }, 124 ], 125 args: { 126 name: "command_with_args", 127 isVariadic: true, 128 isOptional: true, 129 isCommand: true, 130 }, 131}; 132 133export default completion; 134