Help us shape the future of Go! Take the 2026 Go Developer Survey

state

package
v0.2.55-beta.2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLastPluginCheck added in v0.2.54

func GetLastPluginCheck(pluginName string) time.Time

GetLastPluginCheck returns the last time an update check was performed for the given plugin. Returns the zero time if the plugin has never been checked.

func HasCompletedDotenvSetup

func HasCompletedDotenvSetup(repoRoot string) bool

HasCompletedDotenvSetup checks if dotenv setup has been completed in the past. If force-interactive flag is set, this always returns false to force re-execution.

func SetLastPluginCheck added in v0.2.54

func SetLastPluginCheck(pluginName string)

SetLastPluginCheck records the current time as the last update-check time for a plugin. Errors are silently ignored — failing to persist state should never block plugin execution.

func UpdateAfterDotenvSetup

func UpdateAfterDotenvSetup(repoRoot string) error

UpdateAfterDotenvSetup updates the state file after a successful `dr dotenv setup` run.

func UpdateAfterSuccessfulRun

func UpdateAfterSuccessfulRun(repoRoot string) error

UpdateAfterSuccessfulRun creates or updates the state file after a successful `dr start` run.

func UpdateAfterTemplatesSetup added in v0.2.9

func UpdateAfterTemplatesSetup(repoRoot string) error

UpdateAfterTemplatesSetup updates the state file after a successful `dr templates setup` run.

Types

This section is empty.

Jump to

Keyboard shortcuts

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