statefile

package
v11.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 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 domain.RepoRootDir) error

Delete removes the stored run state from disk.

func FilePath

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

func Load

func Load(repoDir domain.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 domain.RepoRootDir) string

func Save

func Save(runState *runstate.RunState, repoDir domain.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