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

53 lines
904 B
JavaScript

const completion: Fig.Spec = {
name: "my-app",
description: "",
subcommands: [
{
name: "test",
description: "Subcommand",
options: [
{
name: "-d",
isRepeatable: true,
},
{
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",
],
},
],
};
export default completion;