about summary refs log tree commit diff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/git/main.go22
-rw-r--r--internal/terminal/link.go13
-rw-r--r--internal/version/main.go12
3 files changed, 0 insertions, 47 deletions
diff --git a/internal/git/main.go b/internal/git/main.go
deleted file mode 100644
index 67e7d4d..0000000
--- a/internal/git/main.go
+++ /dev/null
@@ -1,22 +0,0 @@
-package git
-
-import (
-	"fmt"
-	"os/exec"
-	"strings"
-)
-
-func Root() (string, error) {
-	cmd := exec.Command("git", "rev-parse", "--show-toplevel")
-	output, err := cmd.Output()
-	if err != nil {
-		return "", fmt.Errorf("failed to get git repository: %s", err)
-	}
-
-	// The output includes the full path to the repository. To get just the name,
-	// we can split the path by "/" and take the last part.
-	pathParts := strings.Split(strings.TrimSpace(string(output)), "/")
-	repoName := pathParts[len(pathParts)-1]
-
-	return repoName, nil
-}
diff --git a/internal/terminal/link.go b/internal/terminal/link.go
deleted file mode 100644
index a50b199..0000000
--- a/internal/terminal/link.go
+++ /dev/null
@@ -1,13 +0,0 @@
-package terminal
-
-import "fmt"
-
-// Link returns a formatted string that represents a hyperlink.
-// The hyperlink is created using the escape sequence for terminal emulators.
-// The text parameter represents the visible text of the hyperlink,
-// and the url parameter represents the URL that the hyperlink points to.
-// For more information on the escape sequence, refer to:
-// https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda#the-escape-sequence
-func Link(text string, url string) string {
-	return fmt.Sprintf("\x1b]8;;%s\x07%s\x1b]8;;\x07\u001b[0m", url, text)
-}
diff --git a/internal/version/main.go b/internal/version/main.go
deleted file mode 100644
index d8a745f..0000000
--- a/internal/version/main.go
+++ /dev/null
@@ -1,12 +0,0 @@
-package version
-
-import "fmt"
-
-var Version, BuildDate string
-
-func VersionAndBuildInfo() string {
-	if Version != "" {
-		return fmt.Sprintf("version: %s, build on: %s", Version, BuildDate)
-	}
-	return "(unknown)"
-}