mirror of https://github.com/aptly-dev/aptly
26 lines
359 B
Go
26 lines
359 B
Go
package main
|
|
|
|
import (
|
|
"math/rand"
|
|
"os"
|
|
"time"
|
|
|
|
"github.com/smira/aptly/aptly"
|
|
"github.com/smira/aptly/cmd"
|
|
)
|
|
|
|
// Version variable, filled in at link time
|
|
var Version string
|
|
|
|
func main() {
|
|
if Version == "" {
|
|
Version = "unknown"
|
|
}
|
|
|
|
aptly.Version = Version
|
|
|
|
rand.Seed(time.Now().UnixNano())
|
|
|
|
os.Exit(cmd.Run(cmd.RootCommand(), os.Args[1:], true))
|
|
}
|