scratch

package
v1.0.71 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scratch

type Scratch interface {
	// Mkdir creates a new scratch directory with the given nickname
	Mkdir(nickname string) (string, error)
	// Cleanup deletes all scratch directories created with CreateScratchDir(), UNLESS the CleanupOnExit config setting is false. It should be called when Thelma exits.
	Cleanup() error
}

Scratch is a utility for creating temporary directories that are automatically cleaned up when Thelma exits

func NewScratch

func NewScratch(config config.Config) (Scratch, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL