aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go18
1 files changed, 12 insertions, 6 deletions
diff --git a/main.go b/main.go
index 42c9f16..2a0cae4 100644
--- a/main.go
+++ b/main.go
@@ -1,10 +1,17 @@
package main
+// This software is licensed for under the Free Software Foundations's GPL v2, as retrieved
+// from https://opensource.org/licenses/gpl-2.0.php (2021).
+
import (
"os"
"io"
"fmt"
- "golang.flu0r1ne.net/zfdiff/cmd"
+ "golang.flu0r1ne.net/zsu/cmd"
+)
+
+const (
+ VERSION = "0.0.1"
)
func printUsage(w io.Writer) {
@@ -12,9 +19,8 @@ func printUsage(w io.Writer) {
fmt.Fprintln(w, " help ")
fmt.Fprintln(w, " version ")
fmt.Fprintln(w, " list [-paths|-p] <reference> ")
- fmt.Fprintln(w, " diff <snap-ish>..<snap-ish> <reference> ")
- fmt.Fprintln(w, " cat <snap-ish> <reference> ")
- fmt.Fprintln(w, " overwrite <snap-ish> <reference> ")
+ fmt.Fprintln(w, " diff <reference> <snap-ish>..<snap-ish> ")
+ fmt.Fprintln(w, " cat <reference> <snap-ish> ")
}
func dieUsage() {
@@ -34,8 +40,8 @@ func main() {
switch subcommand {
case "list":
cmd.List(subargs)
- case "overwrite":
- cmd.Overwrite(subargs)
+ case "version":
+ fmt.Printf("%s\n", VERSION)
case "cat":
cmd.Cat(subargs)
case "diff":