Skip to content
Snippets Groups Projects
Select Git revision
  • aca00a138c9e59d028eb3e2e43c65ca29091a255
  • master default protected
  • bugfix/error-on-not-found-network
  • 5.0.2
  • 5.0.1
  • 5.0.0
  • 4.1.2
  • 4.1.1
  • 4.1.0
  • 4.0.0
  • 3.13.0
  • 3.12.2
  • 3.12.1
  • 3.12.0
  • 3.11.0
  • 3.10.1
  • 3.10.0
  • 3.9.2
  • 3.9.0
  • 3.8.1
  • 3.8.0
  • 3.7.1
  • 3.7.0
23 results

main.go

Blame
  • user avatar
    Max Schmitt authored and GitHub committed
    1e166503
    History
    main.go 420 B
    package main
    
    import (
    	"flag"
    	"fmt"
    	"os"
    
    	"github.com/docker/machine/libmachine/drivers/plugin"
    )
    
    // Version will be added once we start the build process via travis-ci
    var Version string
    
    func main() {
    	version := flag.Bool("v", false, "prints current docker-machine-driver-hetzner version")
    	flag.Parse()
    	if *version {
    		fmt.Printf("Version: %s\n", Version)
    		os.Exit(0)
    	}
    	plugin.RegisterDriver(NewDriver())
    }