summaryrefslogtreecommitdiff
path: root/unix.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-07 18:24:17 -0600
committerJeff Carr <[email protected]>2025-01-07 18:24:17 -0600
commite323d5920c76e88948da9f9cfca9ef07e7ef9dd3 (patch)
treefd1ee5fb4bee8f5384d918c5b0ade4cd8e63cf3d /unix.go
parent07e0fdc43724433e18f2fb469b829a7b0b125800 (diff)
rm old code
Diffstat (limited to 'unix.go')
-rw-r--r--unix.go29
1 files changed, 3 insertions, 26 deletions
diff --git a/unix.go b/unix.go
index dbbaed0..ffe1610 100644
--- a/unix.go
+++ b/unix.go
@@ -5,7 +5,6 @@ import (
"os"
"os/exec"
"path/filepath"
- "regexp"
"strings"
"time"
@@ -15,31 +14,6 @@ import (
)
/*
-func run(path string, thing string, cmdline string) string {
- parts := strings.Split(cmdline, " ")
- // Create the command
- cmd := exec.Command(thing, parts...)
-
- // Set the working directory
- cmd.Dir = path
-
- // Execute the command
- output, err := cmd.CombinedOutput()
- tmp := string(output)
- tmp = strings.TrimSpace(tmp)
-
- if err != nil {
- log.Log(WARN, "run()", path, thing, cmdline, "=", tmp)
- log.Error(err, "cmd error'd out", parts)
- return ""
- }
-
- // Print the output
- log.Log(INFO, "run()", path, thing, cmdline, "=", tmp)
- return tmp
-}
-*/
-
// goes in one directory so it gets remote branch names
func listFiles(directory string) []string {
var files []string
@@ -65,7 +39,9 @@ func listFiles(directory string) []string {
return files
}
+*/
+/*
func normalizeVersion(s string) string {
// reg, err := regexp.Compile("[^a-zA-Z0-9]+")
parts := strings.Split(s, "-")
@@ -94,6 +70,7 @@ func splitVersion(version string) (a, b, c string) {
return parts[0], parts[1], parts[2]
}
}
+*/
func (rs *RepoStatus) Run(cmd []string) cmd.Status {
path := rs.realPath.String()