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

54 lines
904 B
JavaScript
Raw Normal View History

2022-03-07 20:08:56 +00:00
const completion: Fig.Spec = {
name: "my-app",
description: "",
subcommands: [
{
name: "test",
description: "Subcommand",
options: [
{
name: "-d",
isRepeatable: true,
2022-03-07 20:08:56 +00:00
},
{
name: ["-h", "--help"],
description: "Print help information",
},
{
name: "-c",
},
],
},
{
name: "help",
description: "Print this message or the help of the given subcommand(s)",
options: [
{
name: "-c",
},
],
args: {
name: "subcommand",
isOptional: true,
},
},
],
options: [
{
name: ["-h", "--help"],
description: "Print help information",
},
{
name: "-c",
},
{
name: "-v",
exclusiveOn: [
"-c",
],
2022-03-07 20:08:56 +00:00
},
],
};
export default completion;