diff --git a/cmd/mover/main.go b/cmd/mover/main.go index 90e70da..2813ee1 100644 --- a/cmd/mover/main.go +++ b/cmd/mover/main.go @@ -18,6 +18,7 @@ var ( path string dsn string verbose bool + version bool action string ) @@ -28,8 +29,14 @@ func main() { flag.StringVar(&dsn, "dsn", "", "database dsn") flag.StringVar(&action, "action", "", "action to execute") flag.BoolVar(&verbose, "verbose", false, "verbose logs") + flag.BoolVar(&version, "version", false, "show version") flag.Parse() + if version { + fmt.Println("mover version", etl.Version) + return + } + var ( ctx = context.Background() logger *zap.Logger diff --git a/etl/version.go b/etl/version.go new file mode 100644 index 0000000..4c4d594 --- /dev/null +++ b/etl/version.go @@ -0,0 +1,5 @@ +package etl + +const ( + Version = 0.1 +)