Documentation ¶
Overview ¶
Copyright © 2023 Shreyan Mitra <[email protected]>
Copyright © 2023 Shreyan Mitra <[email protected]>
Copyright © 2023 Shreyan Mitra <[email protected]>
Copyright © 2023 Shreyan Mitra <[email protected]>
Copyright © 2023 Shreyan Mitra <[email protected]>
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GUICmd = &cobra.Command{ Use: "gui", Short: "Opens XAISuite's GUI", Run: func(cmd *cobra.Command, args []string) { fmt.Println("Installing XAISuite...") install := exec.Command("zsh", "-c", "pip install XAISuite==1.0.8") install.Stdin = os.Stdin install.Stdout = os.Stdout install.Stderr = os.Stderr err_install := install.Run() if err_install != nil { log.Fatalf("Installing XAISuite failed with %s\n", err_install) } fmt.Println("Opening GUI...") gui := exec.Command("zsh", "-c", "python -c 'import xaisuitegui.runner'") gui.Stdin = os.Stdin gui.Stdout = os.Stdout gui.Stderr = os.Stderr err := gui.Run() if err != nil { log.Fatalf("Opening XAISuite GUI failed with %s\n", err) } }, }
GUICmd represents the GUI command
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.