feat: Add version output
This commit is contained in:
parent
ee45d29e6f
commit
55bfb36522
5 changed files with 27 additions and 7 deletions
|
@ -1,16 +1,21 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
internal "github.com/HikariKnight/quickpassthrough/internal"
|
||||
downloader "github.com/HikariKnight/quickpassthrough/internal/ls_iommu_downloader"
|
||||
"github.com/HikariKnight/quickpassthrough/internal/params"
|
||||
"github.com/HikariKnight/quickpassthrough/internal/version"
|
||||
)
|
||||
|
||||
func main() {
|
||||
// Get all our arguments in 1 neat struct
|
||||
pArg := params.NewParams()
|
||||
|
||||
if !pArg.Flag["gui"] {
|
||||
if pArg.Flag["version"] {
|
||||
fmt.Printf("Quickpassthrough version: %s\n", version.Version)
|
||||
} else {
|
||||
downloader.CheckLsIOMMU()
|
||||
internal.Tui()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue