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"],
|
|
|
|
description: "Print help information",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: ["-V", "--version"],
|
|
|
|
description: "Print version information",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
args: {
|
|
|
|
name: "positional",
|
|
|
|
isOptional: true,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export default completion;
|