aboutsummaryrefslogtreecommitdiff
path: root/internal/remote/remote.go
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-01-26 05:13:25 +0000
committerFuwn <[email protected]>2026-01-26 05:13:25 +0000
commit567e5b51d32450999935bcf3af143248888e12e9 (patch)
tree41bb8b2a8fcae168bcb7044adb84f08dc89aaec0 /internal/remote/remote.go
downloadmugi-567e5b51d32450999935bcf3af143248888e12e9.tar.xz
mugi-567e5b51d32450999935bcf3af143248888e12e9.zip
feat: Initial commit
Diffstat (limited to 'internal/remote/remote.go')
-rw-r--r--internal/remote/remote.go50
1 files changed, 50 insertions, 0 deletions
diff --git a/internal/remote/remote.go b/internal/remote/remote.go
new file mode 100644
index 0000000..7280c66
--- /dev/null
+++ b/internal/remote/remote.go
@@ -0,0 +1,50 @@
+package remote
+
+type Operation int
+
+const (
+ Pull Operation = iota
+ Push
+ Fetch
+)
+
+func (o Operation) String() string {
+ switch o {
+ case Pull:
+ return "pull"
+ case Push:
+ return "push"
+ case Fetch:
+ return "fetch"
+ default:
+ return "unknown"
+ }
+}
+
+func (o Operation) Verb() string {
+ switch o {
+ case Pull:
+ return "Pulling"
+ case Push:
+ return "Pushing"
+ case Fetch:
+ return "Fetching"
+ default:
+ return "Operating"
+ }
+}
+
+func (o Operation) PastTense() string {
+ switch o {
+ case Pull:
+ return "Pulled"
+ case Push:
+ return "Pushed"
+ case Fetch:
+ return "Fetched"
+ default:
+ return "Completed"
+ }
+}
+
+const All = "all"