MCPcopy Create free account
hub / github.com/cogentcore/core / SetFromOS

Method SetFromOS

base/exec/stdio.go:32–34  ·  view source on GitHub ↗

SetFromOS sets all our IO to current os.Std*

()

Source from the content-addressed store, hash-verified

30
31// SetFromOS sets all our IO to current os.Std*
32func (st *StdIO) SetFromOS() {
33 st.Out, st.Err, st.In = os.Stdout, os.Stderr, os.Stdin
34}
35
36// SetAll sets all our IO from given args
37func (st *StdIO) SetAll(out, err io.Writer, in io.Reader) {

Callers 6

TestStdIOFunction · 0.95
SetToOSMethod · 0.95
NewShellFunction · 0.80
MajorFunction · 0.80
MinorFunction · 0.80
VerboseFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestStdIOFunction · 0.76