2022-03-07 20:08:56 +00:00
|
|
|
const completion: Fig.Spec = {
|
|
|
|
name: "my-app",
|
|
|
|
description: "",
|
|
|
|
subcommands: [
|
|
|
|
{
|
|
|
|
name: "cmd-single-quotes",
|
|
|
|
description: "Can be 'always', 'auto', or 'never'",
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: ["-h", "--help"],
|
2023-01-03 16:49:43 +00:00
|
|
|
description: "Print help",
|
2022-03-07 20:08:56 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "cmd-double-quotes",
|
|
|
|
description: "Can be /"always/", /"auto/", or /"never/"",
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: ["-h", "--help"],
|
2023-01-03 16:49:43 +00:00
|
|
|
description: "Print help",
|
2022-03-07 20:08:56 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "cmd-backticks",
|
|
|
|
description: "For more information see `echo test`",
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: ["-h", "--help"],
|
2023-01-03 16:49:43 +00:00
|
|
|
description: "Print help",
|
2022-03-07 20:08:56 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "cmd-backslash",
|
|
|
|
description: "Avoid '//n'",
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: ["-h", "--help"],
|
2023-01-03 16:49:43 +00:00
|
|
|
description: "Print help",
|
2022-03-07 20:08:56 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "cmd-brackets",
|
|
|
|
description: "List packages [filter]",
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: ["-h", "--help"],
|
2023-01-03 16:49:43 +00:00
|
|
|
description: "Print help",
|
2022-03-07 20:08:56 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "cmd-expansions",
|
|
|
|
description: "Execute the shell command with $SHELL",
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
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: "cmd-single-quotes",
|
|
|
|
description: "Can be 'always', 'auto', or 'never'",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "cmd-double-quotes",
|
|
|
|
description: "Can be /"always/", /"auto/", or /"never/"",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "cmd-backticks",
|
|
|
|
description: "For more information see `echo test`",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "cmd-backslash",
|
|
|
|
description: "Avoid '//n'",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "cmd-brackets",
|
|
|
|
description: "List packages [filter]",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "cmd-expansions",
|
|
|
|
description: "Execute the shell command with $SHELL",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "help",
|
|
|
|
description: "Print this message or the help of the given subcommand(s)",
|
|
|
|
},
|
|
|
|
],
|
2022-03-07 20:08:56 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: "--single-quotes",
|
|
|
|
description: "Can be 'always', 'auto', or 'never'",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "--double-quotes",
|
|
|
|
description: "Can be /"always/", /"auto/", or /"never/"",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "--backticks",
|
|
|
|
description: "For more information see `echo test`",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "--backslash",
|
|
|
|
description: "Avoid '//n'",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "--brackets",
|
|
|
|
description: "List packages [filter]",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "--expansions",
|
|
|
|
description: "Execute the shell command with $SHELL",
|
|
|
|
},
|
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
|
|
|
},
|
|
|
|
{
|
|
|
|
name: ["-V", "--version"],
|
2023-01-03 16:49:43 +00:00
|
|
|
description: "Print version",
|
2022-08-08 21:08:47 +00:00
|
|
|
},
|
2022-03-07 20:08:56 +00:00
|
|
|
],
|
|
|
|
};
|
|
|
|
|
|
|
|
export default completion;
|