MCPcopy Create free account
hub / github.com/cli/cli / TempFile

Method TempFile

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

Source from the content-addressed store, hash-verified

458}
459
460func (s *IOStreams) TempFile(dir, pattern string) (*os.File, error) {
461 if s.TempFileOverride != nil {
462 return s.TempFileOverride, nil
463 }
464 return os.CreateTemp(dir, pattern)
465}
466
467func (s *IOStreams) SetAccessibleColorsEnabled(enabled bool) {
468 s.accessibleColorsEnabled = enabled

Callers 1

PreserveInputFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected