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

55 lines
1,013 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",
2024-02-16 22:16:36 +00:00
description: "Subcommand with a second line",
2022-03-07 20:08:56 +00:00
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",
2024-02-16 22:16:36 +00:00
description: "Subcommand with a second line",
},
{
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;