Refactor instructions out

This commit is contained in:
2024-07-01 12:12:16 +02:00
parent 84c1652381
commit 508ebe0856
3 changed files with 126 additions and 117 deletions

View File

@@ -5,7 +5,6 @@ import (
"io/fs"
"os"
"path/filepath"
"strconv"
"strings"
)
@@ -62,10 +61,6 @@ func ConvertHome(input string) (string, error) {
return input, nil
}
func InstructionToString(instruction LinkInstruction) string {
return fmt.Sprintf("%s%s%s%s%s%s%s%s%s", SourceColor, instruction.Source, DefaultColor, deliminer, TargetColor, instruction.Target, DefaultColor, deliminer, strconv.FormatBool(instruction.Force))
}
func GetSyncFilesRecursively(input string) ([]string, error) {
var files []string
err := filepath.WalkDir(input, func(path string, file fs.DirEntry, err error) error {