Tidy up the output
This commit is contained in:
parent
ff7a4e846f
commit
9dc81bd568
1 changed files with 9 additions and 3 deletions
|
@ -1,6 +1,9 @@
|
||||||
package pages
|
package pages
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
|
"os"
|
||||||
|
|
||||||
"github.com/HikariKnight/quickpassthrough/pkg/command"
|
"github.com/HikariKnight/quickpassthrough/pkg/command"
|
||||||
"github.com/HikariKnight/quickpassthrough/pkg/menu"
|
"github.com/HikariKnight/quickpassthrough/pkg/menu"
|
||||||
"github.com/gookit/color"
|
"github.com/gookit/color"
|
||||||
|
@ -15,7 +18,7 @@ func Welcome() {
|
||||||
color.Bold.Println("Welcome to Quickpassthrough!")
|
color.Bold.Println("Welcome to Quickpassthrough!")
|
||||||
|
|
||||||
// Write welcome message
|
// Write welcome message
|
||||||
color.Println(
|
color.Print(
|
||||||
"This script is meant to make it easier to setup GPU passthrough for\n",
|
"This script is meant to make it easier to setup GPU passthrough for\n",
|
||||||
"Qemu based systems. WITH DIFFERENT 2 GPUS ON THE HOST SYSTEM\n",
|
"Qemu based systems. WITH DIFFERENT 2 GPUS ON THE HOST SYSTEM\n",
|
||||||
"However due to the complexity of GPU passthrough\n",
|
"However due to the complexity of GPU passthrough\n",
|
||||||
|
@ -26,7 +29,7 @@ func Welcome() {
|
||||||
"* Enable & Configure kernel modules\n",
|
"* Enable & Configure kernel modules\n",
|
||||||
"* Have a backup/snapshot of your system in case the script causes your\n system to be unbootable\n\n",
|
"* Have a backup/snapshot of your system in case the script causes your\n system to be unbootable\n\n",
|
||||||
"By continuing you accept that I am not liable if your system\n",
|
"By continuing you accept that I am not liable if your system\n",
|
||||||
"becomes unbootable, as you will be asked to verify the files generated\n",
|
"becomes unbootable, as you will be asked to verify the files generated\n\n",
|
||||||
)
|
)
|
||||||
|
|
||||||
// Make user accept responsibility
|
// Make user accept responsibility
|
||||||
|
@ -35,5 +38,8 @@ func Welcome() {
|
||||||
// If yes, go to next page
|
// If yes, go to next page
|
||||||
if choice == "y" {
|
if choice == "y" {
|
||||||
SelectGPU()
|
SelectGPU()
|
||||||
|
} else {
|
||||||
|
fmt.Println("")
|
||||||
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue