2022-03-07 20:08:56 +00:00
|
|
|
const completion: Fig.Spec = {
|
|
|
|
name: "my-app",
|
|
|
|
description: "testing bash completions",
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: ["-o", "-O", "--option", "--opt"],
|
|
|
|
description: "cmd option",
|
2022-07-22 18:37:18 +00:00
|
|
|
isRepeatable: true,
|
2022-03-07 20:08:56 +00:00
|
|
|
args: {
|
|
|
|
name: "option",
|
|
|
|
isOptional: true,
|
|
|
|
},
|
|
|
|
},
|
2022-08-08 21:08:47 +00:00
|
|
|
{
|
|
|
|
name: ["-f", "-F", "--flag", "--flg"],
|
|
|
|
description: "cmd flag",
|
|
|
|
},
|
2022-03-07 20:08:56 +00:00
|
|
|
{
|
|
|
|
name: ["-h", "--help"],
|
2023-01-03 16:49:43 +00:00
|
|
|
description: "Print help",
|
2022-03-07 20:08:56 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: ["-V", "--version"],
|
2023-01-03 16:49:43 +00:00
|
|
|
description: "Print version",
|
2022-03-07 20:08:56 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
args: {
|
|
|
|
name: "positional",
|
|
|
|
isOptional: true,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export default completion;
|