Mercurial > hg > Members > anatofuz > growiBackup
changeset 3:48d40662fb04
add cmd file
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 16 Dec 2020 15:15:18 +0900 |
parents | cfb93034ed39 |
children | 7261b46d4a28 |
files | cmd/growibackup/main.go go.mod |
diffstat | 2 files changed, 22 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cmd/growibackup/main.go Wed Dec 16 15:15:18 2020 +0900 @@ -0,0 +1,17 @@ +package main + +import ( + "fmt" + "growibackup" + "os" +) + +func main() { + err := growibackup.Run(os.Args[1], os.Args[2]) + exitCode := 0 + if err != nil { + fmt.Println(err) + exitCode = 1 + } + os.Exit(exitCode) +}