Refactor instructions out
This commit is contained in:
5
util.go
5
util.go
@@ -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 {
|
||||
|
Reference in New Issue
Block a user