~egtann/migrate

ccd7c9699d2aa49f5bd0ddd63e02b7b2c63defac — Evan Tann 11 months ago 8ec5d6a
add version flag
1 files changed, 6 insertions(+), 0 deletions(-)

M cmd/migrate/main.go
M cmd/migrate/main.go => cmd/migrate/main.go +6 -0
@@ 35,8 35,14 @@ func run() error {
	sslServerName := flag.String("ssl-server", "", "server name for ssl")
	skip := flag.String("skip", "", "skip up to this filename (inclusive)")
	pass := flag.String("pass", "", "password (optional flag, if not provided it will be requested)")
	version := flag.Bool("v", false, "print the version and exit")
	flag.Parse()

	if *version {
		fmt.Println("v1.0.0rc1")
		return nil
	}

	// Restrict this program to specific files (read-only) and greatly
	// restrict its possible syscalls
	paths := []string{*migrationDir}