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",
|
2022-03-17 20:29:26 +00:00
|
|
|
isRepeatable: true,
|
2022-03-07 20:08:56 +00:00
|
|
|
},
|
|
|
|
{
|
2022-08-08 21:08:47 +00:00
|
|
|
name: "-c",
|
2022-03-07 20:08:56 +00:00
|
|
|
},
|
|
|
|
{
|
2022-08-08 21:08:47 +00:00
|
|
|
name: ["-h", "--help"],
|
2023-01-03 16:49:43 +00:00
|
|
|
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)",
|
2022-08-25 05:44:07 +00:00
|
|
|
subcommands: [
|
|
|
|
{
|
|
|
|
name: "test",
|
2024-02-16 22:16:36 +00:00
|
|
|
description: "Subcommand with a second line",
|
2022-08-25 05:44:07 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
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",
|
2022-03-17 20:29:26 +00:00
|
|
|
exclusiveOn: [
|
|
|
|
"-c",
|
|
|
|
],
|
2022-03-07 20:08:56 +00:00
|
|
|
},
|
2022-08-08 21:08:47 +00:00
|
|
|
{
|
|
|
|
name: ["-h", "--help"],
|
2023-01-03 16:49:43 +00:00
|
|
|
description: "Print help",
|
2022-08-08 21:08:47 +00:00
|
|
|
},
|
2022-03-07 20:08:56 +00:00
|
|
|
],
|
|
|
|
};
|
|
|
|
|
|
|
|
export default completion;
|