diff options
author | flu0r1ne <flu0r1ne@flu0r1ne.net> | 2021-07-29 13:09:23 -0500 |
---|---|---|
committer | flu0r1ne <flu0r1ne@flu0r1ne.net> | 2021-07-29 13:09:23 -0500 |
commit | 2c10158ce92f102280d4d87406ebeea3e05bf915 (patch) | |
tree | 61797fcdea06e128a04af05ce611f9babc0a8775 /main.go | |
parent | 34d7d612dd376258248ee6cae07b839951fccf32 (diff) | |
download | zsu-2c10158ce92f102280d4d87406ebeea3e05bf915.tar.xz zsu-2c10158ce92f102280d4d87406ebeea3e05bf915.zip |
Added README, Licence, and fixed issue with modules
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -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": |