statefile

package
v14.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package persistence stores Git Town runstate on disk.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(repoDir gitdomain.RepoRootDir) error

Delete removes the stored run state from disk.

func FilePath

func FilePath(repoDir gitdomain.RepoRootDir) (string, error)

func Load

func Load(repoDir gitdomain.RepoRootDir) (*runstate.RunState, error)

Load loads the run state for the given Git repo from disk. Can return nil if there is no saved runstate.

func SanitizePath

func SanitizePath(dir gitdomain.RepoRootDir) string

func Save

func Save(runState *runstate.RunState, repoDir gitdomain.RepoRootDir) error

Save stores the given run state for the given Git repo to disk.

Types

This section is empty.

Jump to

Keyboard shortcuts

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