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

Method TempFile

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

Source from the content-addressed store, hash-verified

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

Callers 1

PreserveInputFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected