package
Version:
v0.6.1
Opens a new window with list of versions in this module.
Published: Feb 2, 2026
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Delete removes a key from the state.
Get retrieves a value from the state by key.
Returns the value and true if found, nil and false otherwise.
GetString is a convenience function to get a string value from state.
Returns empty string if the key doesn't exist or the value is not a string.
Save saves the state to the state file.
Set sets a value in the state.
type State map[string]interface{}
State represents the local Grove state as a generic map of key-value pairs.
This allows any Grove tool to store arbitrary state data.
Load loads the state from the state file.
Returns an empty state if the file doesn't exist.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.