mirror of
https://github.com/HikariKnight/quickpassthrough
synced 2025-06-28 05:58:00 +02:00
Start process to away from bubbletea to a more simpler solution for this projects needs
This commit is contained in:
parent
cc6db38d74
commit
c1ea5e5163
10 changed files with 298 additions and 65 deletions
39
internal/pages/01_welcome.go
Normal file
39
internal/pages/01_welcome.go
Normal file
|
@ -0,0 +1,39 @@
|
|||
package pages
|
||||
|
||||
import (
|
||||
"github.com/HikariKnight/quickpassthrough/pkg/command"
|
||||
"github.com/HikariKnight/quickpassthrough/pkg/menu"
|
||||
"github.com/gookit/color"
|
||||
)
|
||||
|
||||
// Welcome page
|
||||
func Welcome() {
|
||||
// Clear screen
|
||||
command.Clear()
|
||||
|
||||
// Write title
|
||||
color.Bold.Println("Welcome to Quickpassthrough!")
|
||||
|
||||
// Write welcome message
|
||||
color.Println(
|
||||
" 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",
|
||||
"However due to the complexity of GPU passthrough\n",
|
||||
"This script assumes you know how to do (or have done) the following.\n\n",
|
||||
"* You have already enabled IOMMU, VT-d, SVM and/or AMD-v\n inside your UEFI/BIOS advanced settings.\n",
|
||||
"* Know how to edit your bootloader\n",
|
||||
"* Have a bootloader timeout of at least 3 seconds to access the menu\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",
|
||||
"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",
|
||||
)
|
||||
|
||||
// Make user accept responsibility
|
||||
choice := menu.YesNo("Are you sure you want to continue?")
|
||||
|
||||
// If yes, go to next page
|
||||
if choice == "y" {
|
||||
SelectGPU()
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue