File: main.go

package info (click to toggle)
aptly 1.3.0+ds1-2.3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 47,892 kB
  • sloc: python: 6,899; sh: 743; makefile: 72
file content (25 lines) | stat: -rw-r--r-- 367 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package main

import (
	"math/rand"
	"os"
	"time"

	"github.com/aptly-dev/aptly/aptly"
	"github.com/aptly-dev/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))
}