github.com/criteo/command-launcher@v0.0.0-20230407142452-fb616f546e98/test/packages-src/bonjour/manifest.mf (about) 1 { 2 "pkgName": "bonjour", 3 "version": "1.0.0", 4 "cmds": [ 5 { 6 "name": "greeting", 7 "type": "group", 8 "short": "a group of greeting commands" 9 }, 10 { 11 "name": "bonjour", 12 "type": "executable", 13 "short": "print bonjour from command launcher", 14 "executable": "{{.PackageDir}}/bonjour.{{if eq .Os \"windows\"}}bat{{else}}sh{{end}}", 15 "args": [], 16 "validArgs": [ "Joe", "Mike" ], 17 "flags": [ 18 { 19 "name": "lang", 20 "short": "l", 21 "desc": "greeting language", 22 "values": [ "fr", "en", "zh", "jp" ] 23 }, 24 { 25 "name": "name", 26 "short": "n", 27 "desc": "greeting name", 28 "valuesCmd": [ "{{.PackageDir}}/auto-complete.{{if eq .Os \"windows\"}}bat{{else}}sh{{end}}" ] 29 } 30 ], 31 "checkFlags": true 32 }, 33 { 34 "name": "saybonjour", 35 "type": "executable", 36 "group": "greeting", 37 "short": "print bonjour from command launcher", 38 "executable": "{{.PackageDir}}/bonjour.{{if eq .Os \"windows\"}}bat{{else}}sh{{end}}", 39 "args": [], 40 "validArgsCmd": [ "{{.PackageDir}}/auto-complete.{{if eq .Os \"windows\"}}bat{{else}}sh{{end}}" ] 41 } 42 43 ] 44 }