func (s *State) SetVaultKVPath(value string) {
	s.Vault.KV.Path = value
	s.save()
}
SetVaultKVPath : Update state file with a Vault/Secret/Path value
package cmd
import (
	"bytes"
	"fmt"
	"io/ioutil"
	"os"
	"path/filepath"
	"strconv"
	"github.com/olekukonko/tablewriter"
	log "github.com/sirupsen/logrus"
	"gopkg.in/yaml.v3"
)
type State struct {
	Vault struct {
		TransitKey string
		KV         struct {
			Path    string
			Version int
		}
	}
	Secrets map[string]map[string]string
	Config  *StateConfig `yaml:"-"`
}
type StateConfig struct {
	Path string
}
func getStateClient(sc *StateConfig) *State {
	return &State{
		Config: sc,
	}
}
func (s *State) Init() {
	log.Infof("Creating an empty state file at %v", s.Config.Path)
	s.SetVaultTransitKey("default")
	s.SetVaultKVPath("secret/")
	s.SetVaultKVVersion(2)
	s.save()
}
func (s *State) SetVaultTransitKey(value string) {
	s.Vault.TransitKey = value
	s.save()
}
func (s *State) VaultTransitKey() string {
	return s.Vault.TransitKey
}