diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2021-07-29 13:09:23 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2021-07-29 13:09:23 -0500 |
| commit | c9359220123330875f15a31e68130efc2d083522 (patch) | |
| tree | f0948ba68f3df9a3fa9bf8260d7a05a8ea12ad00 /main.go | |
| parent | 1dad91f7ec6e98a54a4bbb1ed9f2b13fe45b7048 (diff) | |
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.furkistan.com/zfdiff/cmd" + "golang.furkistan.com/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": |
