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

55 lines
975 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: "-c",
2022-03-07 20:08:56 +00:00
},
{
name: ["-h", "--help"],
description: "Print help",
2022-03-07 20:08:56 +00:00
},
],
},
{
name: "help",
description: "Print this message or the help of the given subcommand(s)",
subcommands: [
{
name: "test",
description: "Subcommand",
},
{
name: "help",
description: "Print this message or the help of the given subcommand(s)",
2022-03-07 20:08:56 +00:00
},
],
},
],
options: [
{
name: "-c",
},
{
name: "-v",
exclusiveOn: [
"-c",
],
2022-03-07 20:08:56 +00:00
},
{
name: ["-h", "--help"],
description: "Print help",
},
2022-03-07 20:08:56 +00:00
],
};
export default completion;