mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Add NewSavedPlanBookmark function
so we don't have to remember the format version number
This commit is contained in:
parent
dcccd3b266
commit
9d85f18930
@ -20,6 +20,14 @@ type SavedPlanBookmark struct {
|
||||
Hostname string `json:"hostname"`
|
||||
}
|
||||
|
||||
func NewSavedPlanBookmark(runID, hostname string) SavedPlanBookmark {
|
||||
return SavedPlanBookmark{
|
||||
RemotePlanFormat: 1,
|
||||
RunID: runID,
|
||||
Hostname: hostname,
|
||||
}
|
||||
}
|
||||
|
||||
func LoadSavedPlanBookmark(filepath string) (SavedPlanBookmark, error) {
|
||||
bookmark := SavedPlanBookmark{}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user