<commit_before>// Copyright 2017 The go-vm Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package fusion

import (
	"github.com/go-vm/vmware"
)

// Guest represents a guest login data.
type Guest struct {
	User string
	Pass string
}

type RunProgramInGuestConfig int

const (
	NoWait RunProgramInGuestConfig = 1 << iota
	ActiveWindow
	Interactive
)

// RunProgramInGuest run a program in Guest OS.
func RunProgramInGuest(vmx string, guest Guest, config RunProgramInGuestConfig, cmdPath string, cmdArgs ...string) error {
	args := []string{"-gu", guest.User, "-gp", guest.Pass, "runProgramInGuest", vmx}<commit_msg>fusion/guest: add godoc comment for RunProgramInGuestConfig<commit_after>// Copyright 2017 The go-vm Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package fusion

import (
	"github.com/go-vm/vmware"
)

// Guest represents a guest login data.
type Guest struct {
	User string
	Pass string
}

// RunProgramInGuestConfig represents a runProgramInGuest command flags.
type RunProgramInGuestConfig int

const (
	// NoWait returns a prompt immediately after the program starts in the guest, rather than waiting for it to finish.
	// This option is useful for interactive programs.
	NoWait RunProgramInGuestConfig = 1 << iota
	// ActiveWindow ensures that the Windows GUI is visible, not minimized.
	// It has no effect on Linux.
	ActiveWindow
	// Interactive forces interactive guest login.
	// It is useful for Vista and Windows 7 guests to make the program visible in the console window.
	Interactive
)

// RunProgramInGuest run a program in Guest OS.
func RunProgramInGuest(vmx string, guest Guest, config RunProgramInGuestConfig, cmdPath string, cmdArgs ...string) error {
	args := []string{"-gu", guest.User, "-gp", guest.Pass, "runProgramInGuest", vmx}
{'fraction_non_alphanumeric': 0.08080288214101904, 'fraction_numerical': 0.005661348430262481, 'mean_word_length': 4.0890052356020945, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2172594', 'n_tokens_mistral': 581, 'n_tokens_neox': 540, 'n_words': 237}