main.go 367 Bytes
Newer Older
1 2 3
package main

import (
4
	"math/rand"
5
	"os"
6
	"time"
7

8 9
	"github.com/aptly-dev/aptly/aptly"
	"github.com/aptly-dev/aptly/cmd"
10 11 12 13 14 15 16 17 18 19 20 21
)

// Version variable, filled in at link time
var Version string

func main() {
	if Version == "" {
		Version = "unknown"
	}

	aptly.Version = Version

22 23
	rand.Seed(time.Now().UnixNano())

24 25
	os.Exit(cmd.Run(cmd.RootCommand(), os.Args[1:], true))
}