Implement shell command

This commit is contained in:
AlexSSD7 2023-08-26 11:27:38 +01:00
commit 702f06e914
6 changed files with 134 additions and 12 deletions

View file

@ -22,9 +22,14 @@ func Execute() {
}
}
var vmDebugFlag bool
func init() {
slog.SetDefault(slog.New(slog.NewTextHandler(os.Stderr, nil)))
rootCmd.AddCommand(lsCmd)
rootCmd.AddCommand(runCmd)
rootCmd.AddCommand(shellCmd)
rootCmd.PersistentFlags().BoolVar(&vmDebugFlag, "vmdebug", false, "Enable VM debug mode. This will open an accessible VM monitor. You can log in with root user and no password.")
}