Fix go test./... issue: fmt.Println arg list ends with redundant newline (#705)
This commit is contained in:
parent
9e2de1bd2c
commit
d104b7e997
1 changed files with 4 additions and 4 deletions
|
@ -687,7 +687,7 @@ func generateInteractive(cmd *cobra.Command, model string) error {
|
||||||
switch args[1] {
|
switch args[1] {
|
||||||
case "license":
|
case "license":
|
||||||
if resp.License == "" {
|
if resp.License == "" {
|
||||||
fmt.Println("No license was specified for this model.\n")
|
fmt.Print("No license was specified for this model.\n\n")
|
||||||
} else {
|
} else {
|
||||||
fmt.Println(resp.License)
|
fmt.Println(resp.License)
|
||||||
}
|
}
|
||||||
|
@ -695,19 +695,19 @@ func generateInteractive(cmd *cobra.Command, model string) error {
|
||||||
fmt.Println(resp.Modelfile)
|
fmt.Println(resp.Modelfile)
|
||||||
case "parameters":
|
case "parameters":
|
||||||
if resp.Parameters == "" {
|
if resp.Parameters == "" {
|
||||||
fmt.Println("No parameters were specified for this model.\n")
|
fmt.Print("No parameters were specified for this model.\n\n")
|
||||||
} else {
|
} else {
|
||||||
fmt.Println(resp.Parameters)
|
fmt.Println(resp.Parameters)
|
||||||
}
|
}
|
||||||
case "system":
|
case "system":
|
||||||
if resp.System == "" {
|
if resp.System == "" {
|
||||||
fmt.Println("No system prompt was specified for this model.\n")
|
fmt.Print("No system prompt was specified for this model.\n\n")
|
||||||
} else {
|
} else {
|
||||||
fmt.Println(resp.System)
|
fmt.Println(resp.System)
|
||||||
}
|
}
|
||||||
case "template":
|
case "template":
|
||||||
if resp.Template == "" {
|
if resp.Template == "" {
|
||||||
fmt.Println("No prompt template was specified for this model.\n")
|
fmt.Print("No prompt template was specified for this model.\n\n")
|
||||||
} else {
|
} else {
|
||||||
fmt.Println(resp.Template)
|
fmt.Println(resp.Template)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue