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

134 lines
2.3 KiB
JavaScript
Raw Normal View History

2022-03-07 20:08:56 +00:00
const completion: Fig.Spec = {
name: "my-app",
description: "",
options: [
{
name: "--choice",
isRepeatable: true,
2022-03-07 20:08:56 +00:00
args: {
name: "choice",
isOptional: true,
suggestions: [
"bash",
"fish",
"zsh",
],
2022-03-07 20:08:56 +00:00
},
},
{
name: "--unknown",
isRepeatable: true,
2022-03-07 20:08:56 +00:00
args: {
name: "unknown",
isOptional: true,
},
},
{
name: "--other",
isRepeatable: true,
2022-03-07 20:08:56 +00:00
args: {
name: "other",
isOptional: true,
},
},
{
name: ["-p", "--path"],
isRepeatable: true,
2022-03-07 20:08:56 +00:00
args: {
name: "path",
isOptional: true,
template: "filepaths",
},
},
{
name: ["-f", "--file"],
isRepeatable: true,
2022-03-07 20:08:56 +00:00
args: {
name: "file",
isOptional: true,
template: "filepaths",
},
},
{
name: ["-d", "--dir"],
isRepeatable: true,
2022-03-07 20:08:56 +00:00
args: {
name: "dir",
isOptional: true,
template: "folders",
},
},
{
name: ["-e", "--exe"],
isRepeatable: true,
2022-03-07 20:08:56 +00:00
args: {
name: "exe",
isOptional: true,
template: "filepaths",
},
},
{
name: "--cmd-name",
isRepeatable: true,
2022-03-07 20:08:56 +00:00
args: {
name: "cmd_name",
isOptional: true,
isCommand: true,
},
},
{
name: ["-c", "--cmd"],
isRepeatable: true,
2022-03-07 20:08:56 +00:00
args: {
name: "cmd",
isOptional: true,
isCommand: true,
},
},
{
name: ["-u", "--user"],
isRepeatable: true,
2022-03-07 20:08:56 +00:00
args: {
name: "user",
isOptional: true,
},
},
{
name: ["-H", "--host"],
isRepeatable: true,
2022-03-07 20:08:56 +00:00
args: {
name: "host",
isOptional: true,
},
},
{
name: "--url",
isRepeatable: true,
2022-03-07 20:08:56 +00:00
args: {
name: "url",
isOptional: true,
},
},
{
name: "--email",
isRepeatable: true,
2022-03-07 20:08:56 +00:00
args: {
name: "email",
isOptional: true,
},
},
{
name: ["-h", "--help"],
description: "Print help",
2022-03-07 20:08:56 +00:00
},
],
args: {
name: "command_with_args",
isVariadic: true,
isOptional: true,
isCommand: true,
},
};
export default completion;