clap/clap_complete_fig/tests/snapshots/aliases.fig.js

34 lines
665 B
JavaScript
Raw Normal View History

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",
isRepeatable: true,
2022-03-07 20:08:56 +00:00
args: {
name: "option",
isOptional: true,
},
},
{
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;