Skip to content

Commit

Permalink
fixed problem
Browse files Browse the repository at this point in the history
  • Loading branch information
JensvandeWiel committed Aug 3, 2023
1 parent e430880 commit 55d70d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions steamcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ package gosteamcmd

import (
"github.com/jensvandewiel/gosteamcmd/console"
"os"
"io"
)

type SteamCMD struct {
// Prompts contains all the commands that will be executed.
Prompts []*Prompt
console *console.Console

stdout io.Writer
}

func New() *SteamCMD {
Expand All @@ -26,7 +28,7 @@ func (s *SteamCMD) RunHeadless() error {

cmd += " +quit"

s.console = console.New(cmd, os.Stdout)
s.console = console.New(cmd, s.stdout)
err := s.console.Run()
if err != nil {
return err
Expand Down

0 comments on commit 55d70d5

Please sign in to comment.