Skip to content

Commit

Permalink
fix: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy Poluyanov committed Dec 12, 2021
1 parent a6d8872 commit 3e35f8c
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 23 deletions.
Binary file removed bep.bin
Binary file not shown.
Binary file removed bep.bin2
Binary file not shown.
Binary file removed intellij-bep-26731237-e6d3-43ff-b2c3-47f109b4b6cf
Binary file not shown.
Binary file removed intellij-bep-cd6819d5-23bb-4bb4-8d7b-6ee656d3bd04
Binary file not shown.
23 changes: 1 addition & 22 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ import (

func main() {
// open output file
var fo, err = os.OpenFile("C:\\Users\\la_d.poluyanov\\GolandProjects\\bazel\\command_log.txt", os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0600)
//var fo, err = os.OpenFile("/Users/d.poluyanov/workspace/bazel-wsl/command_log.txt", os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0600)
var fo, err = os.OpenFile("command_log.txt", os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0600)
if err != nil {
panic(err)
}
Expand Down Expand Up @@ -98,30 +97,10 @@ func main() {
fo.WriteString(arg + "\n")
}

//logFile, err := os.OpenFile("C:\\Users\\la_d.poluyanov\\GolandProjects\\bazel\\log.txt", os.O_CREATE|os.O_APPEND|os.O_RDWR, 0666)
//if err != nil {
// panic(err)
//}
//
//defer func() {
// logFile.Close()
//}()
//mw := io.MultiWriter(logFile, os.Stdout)
//logFileErr, err := os.OpenFile("C:\\Users\\la_d.poluyanov\\GolandProjects\\bazel\\log_err.txt", os.O_CREATE|os.O_APPEND|os.O_RDWR, 0666)
//if err != nil {
// panic(err)
//}
//defer func() {
// logFileErr.Close()
//}()
//mwErr := io.MultiWriter(os.Stderr, logFileErr)

var outBuffer bytes.Buffer
cmd := exec.Command("wsl", bazelArgs...)
cmd.Stdout = &outBuffer
cmd.Stderr = os.Stderr
//cmd.Stdout = mw
//cmd.Stderr = mwErr

cmdErr := cmd.Run()

Expand Down
1 change: 0 additions & 1 deletion text.txt

This file was deleted.

0 comments on commit 3e35f8c

Please sign in to comment.