1const completion: Fig.Spec = { 2 name: "my-app", 3 description: "", 4 subcommands: [ 5 { 6 name: "test", 7 description: "Subcommand", 8 options: [ 9 { 10 name: "-d", 11 isRepeatable: true, 12 }, 13 { 14 name: "-c", 15 }, 16 { 17 name: ["-h", "--help"], 18 description: "Print help", 19 }, 20 ], 21 }, 22 { 23 name: "help", 24 description: "Print this message or the help of the given subcommand(s)", 25 subcommands: [ 26 { 27 name: "test", 28 description: "Subcommand", 29 }, 30 { 31 name: "help", 32 description: "Print this message or the help of the given subcommand(s)", 33 }, 34 ], 35 }, 36 ], 37 options: [ 38 { 39 name: "-c", 40 }, 41 { 42 name: "-v", 43 exclusiveOn: [ 44 "-c", 45 ], 46 }, 47 { 48 name: ["-h", "--help"], 49 description: "Print help", 50 }, 51 ], 52}; 53 54export default completion; 55