fix(fig): Get tests passing

This commit is contained in:
Ed Page 2021-10-12 09:08:22 -05:00
parent fa0deb03cf
commit d8b6016f57

View file

@ -46,12 +46,12 @@ static FIG: &str = r#"const completion: Fig.Spec = {
},
},
{
name: ["-h", "--help"],
description: "Print help information",
name: "--version",
description: "Print version information",
},
{
name: ["-V", "--version"],
description: "Print version information",
name: ["-h", "--help"],
description: "Print help information",
},
],
},
@ -60,12 +60,12 @@ static FIG: &str = r#"const completion: Fig.Spec = {
description: "Print this message or the help of the given subcommand(s)",
options: [
{
name: ["-h", "--help"],
description: "Print help information",
name: "--version",
description: "Print version information",
},
{
name: ["-V", "--version"],
description: "Print version information",
name: ["-h", "--help"],
description: "Print help information",
},
],
},
@ -75,10 +75,6 @@ static FIG: &str = r#"const completion: Fig.Spec = {
name: ["-h", "--help"],
description: "Print help information",
},
{
name: ["-V", "--version"],
description: "Print version information",
},
],
args: {
name: "file",
@ -126,12 +122,12 @@ static FIG_SPECIAL_CMDS: &str = r#"const completion: Fig.Spec = {
},
},
{
name: ["-h", "--help"],
description: "Print help information",
name: "--version",
description: "Print version information",
},
{
name: ["-V", "--version"],
description: "Print version information",
name: ["-h", "--help"],
description: "Print help information",
},
],
},
@ -148,12 +144,12 @@ static FIG_SPECIAL_CMDS: &str = r#"const completion: Fig.Spec = {
},
},
{
name: ["-h", "--help"],
description: "Print help information",
name: "--version",
description: "Print version information",
},
{
name: ["-V", "--version"],
description: "Print version information",
name: ["-h", "--help"],
description: "Print help information",
},
],
},
@ -161,12 +157,12 @@ static FIG_SPECIAL_CMDS: &str = r#"const completion: Fig.Spec = {
name: "some-cmd-with-hypens",
options: [
{
name: ["-h", "--help"],
description: "Print help information",
name: "--version",
description: "Print version information",
},
{
name: ["-V", "--version"],
description: "Print version information",
name: ["-h", "--help"],
description: "Print help information",
},
],
},
@ -175,12 +171,12 @@ static FIG_SPECIAL_CMDS: &str = r#"const completion: Fig.Spec = {
description: "Print this message or the help of the given subcommand(s)",
options: [
{
name: ["-h", "--help"],
description: "Print help information",
name: "--version",
description: "Print version information",
},
{
name: ["-V", "--version"],
description: "Print version information",
name: ["-h", "--help"],
description: "Print help information",
},
],
},
@ -190,10 +186,6 @@ static FIG_SPECIAL_CMDS: &str = r#"const completion: Fig.Spec = {
name: ["-h", "--help"],
description: "Print help information",
},
{
name: ["-V", "--version"],
description: "Print version information",
},
],
args: {
name: "file",
@ -249,10 +241,6 @@ static FIG_SPECIAL_HELP: &str = r#"const completion: Fig.Spec = {
name: ["-h", "--help"],
description: "Print help information",
},
{
name: ["-V", "--version"],
description: "Print version information",
},
{
name: "--single-quotes",
description: "Can be 'always', 'auto', or 'never'",
@ -328,10 +316,6 @@ static FIG_ALIASES: &str = r#"const completion: Fig.Spec = {
name: ["-h", "--help"],
description: "Print help information",
},
{
name: ["-V", "--version"],
description: "Print version information",
},
{
name: ["-f", "-F", "--flag", "--flg"],
description: "cmd flag",
@ -384,12 +368,12 @@ static FIG_SUB_SUBCMDS: &str = r#"const completion: Fig.Spec = {
},
},
{
name: ["-h", "--help"],
description: "Print help information",
name: "--version",
description: "Print version information",
},
{
name: ["-V", "--version"],
description: "Print version information",
name: ["-h", "--help"],
description: "Print help information",
},
],
},
@ -422,12 +406,12 @@ static FIG_SUB_SUBCMDS: &str = r#"const completion: Fig.Spec = {
],
options: [
{
name: ["-h", "--help"],
description: "Print help information",
name: "--version",
description: "Print version information",
},
{
name: ["-V", "--version"],
description: "Print version information",
name: ["-h", "--help"],
description: "Print help information",
},
],
},
@ -436,12 +420,12 @@ static FIG_SUB_SUBCMDS: &str = r#"const completion: Fig.Spec = {
description: "Print this message or the help of the given subcommand(s)",
options: [
{
name: ["-h", "--help"],
description: "Print help information",
name: "--version",
description: "Print version information",
},
{
name: ["-V", "--version"],
description: "Print version information",
name: ["-h", "--help"],
description: "Print help information",
},
],
},
@ -451,10 +435,6 @@ static FIG_SUB_SUBCMDS: &str = r#"const completion: Fig.Spec = {
name: ["-h", "--help"],
description: "Print help information",
},
{
name: ["-V", "--version"],
description: "Print version information",
},
],
args: {
name: "file",