MCPcopy Index your code
hub / github.com/cli/cli / TempFile

Method TempFile

pkg/iostreams/iostreams.go:447–452  ·  view source on GitHub ↗
(dir, pattern string)

Source from the content-addressed store, hash-verified

445}
446
447func (s *IOStreams) TempFile(dir, pattern string) (*os.File, error) {
448 if s.TempFileOverride != nil {
449 return s.TempFileOverride, nil
450 }
451 return os.CreateTemp(dir, pattern)
452}
453
454func (s *IOStreams) SetAccessibleColorsEnabled(enabled bool) {
455 s.accessibleColorsEnabled = enabled

Callers 1

PreserveInputFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected