mirror of
https://github.com/clap-rs/clap
synced 2024-12-15 15:22:30 +00:00
54 lines
1,013 B
JavaScript
54 lines
1,013 B
JavaScript
const completion: Fig.Spec = {
|
|
name: "my-app",
|
|
description: "",
|
|
subcommands: [
|
|
{
|
|
name: "test",
|
|
description: "Subcommand with a second line",
|
|
options: [
|
|
{
|
|
name: "-d",
|
|
isRepeatable: true,
|
|
},
|
|
{
|
|
name: "-c",
|
|
},
|
|
{
|
|
name: ["-h", "--help"],
|
|
description: "Print help",
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: "help",
|
|
description: "Print this message or the help of the given subcommand(s)",
|
|
subcommands: [
|
|
{
|
|
name: "test",
|
|
description: "Subcommand with a second line",
|
|
},
|
|
{
|
|
name: "help",
|
|
description: "Print this message or the help of the given subcommand(s)",
|
|
},
|
|
],
|
|
},
|
|
],
|
|
options: [
|
|
{
|
|
name: "-c",
|
|
},
|
|
{
|
|
name: "-v",
|
|
exclusiveOn: [
|
|
"-c",
|
|
],
|
|
},
|
|
{
|
|
name: ["-h", "--help"],
|
|
description: "Print help",
|
|
},
|
|
],
|
|
};
|
|
|
|
export default completion;
|