Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigChange ¶
func (ConfigChange) Content ¶
func (c ConfigChange) Content() (string, error)
func (ConfigChange) Diff ¶
func (c ConfigChange) Diff(frompath string) ([]diffmatchpatch.Diff, error)
func (ConfigChange) Remove ¶
func (c ConfigChange) Remove() error
type Configs ¶
type Configs map[string][]ConfigChange
Configs is a map of files -> and related config change
func Scan ¶
Scan does: 1: walk etc 2: find filenames with pattern https://github.com/mudler/luet/blob/a83be204e8bd3498a736fa9fe401fb00bb91a893/pkg/compiler/artifact.go#L457
fmt.Sprintf("._cfg%04d_%s", i, filepath.Base(path))))
3: get latest - compare with current with diff. If no diff automerge.
offer option to automerge failback to ask. discard/accept change
fmt.Println(res)
func (Configs) CleanChanges ¶
func (Configs) LatestFor ¶
func (c Configs) LatestFor(s string) ConfigChange
Click to show internal directories.
Click to hide internal directories.