mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
views: fix wordwrap
This commit is contained in:
parent
361d43c820
commit
7ce5503c7a
@ -143,18 +143,25 @@ func (v *OperationHuman) PlanNextStep(planPath string, genConfigPath string) {
|
|||||||
|
|
||||||
if genConfigPath != "" {
|
if genConfigPath != "" {
|
||||||
v.view.streams.Printf(
|
v.view.streams.Printf(
|
||||||
"\n"+strings.TrimSpace(format.WordWrap(planHeaderGenConfig, v.view.outputColumns()))+"\n", genConfigPath,
|
format.WordWrap(
|
||||||
)
|
"\n"+strings.TrimSpace(fmt.Sprintf(planHeaderGenConfig, genConfigPath)),
|
||||||
|
v.view.outputColumns(),
|
||||||
|
) + "\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
if planPath == "" {
|
if planPath == "" {
|
||||||
v.view.streams.Print(
|
v.view.streams.Print(
|
||||||
"\n" + strings.TrimSpace(format.WordWrap(planHeaderNoOutput, v.view.outputColumns())) + "\n",
|
format.WordWrap(
|
||||||
|
"\n"+strings.TrimSpace(planHeaderNoOutput),
|
||||||
|
v.view.outputColumns(),
|
||||||
|
) + "\n",
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
v.view.streams.Printf(
|
v.view.streams.Printf(
|
||||||
"\n"+strings.TrimSpace(format.WordWrap(planHeaderYesOutput, v.view.outputColumns()))+"\n",
|
format.WordWrap(
|
||||||
planPath, planPath,
|
"\n"+strings.TrimSpace(fmt.Sprintf(planHeaderYesOutput, planPath, planPath)),
|
||||||
|
v.view.outputColumns(),
|
||||||
|
) + "\n",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user