File: script.go

package info (click to toggle)
git-lfs 3.3.0-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,676 kB
  • sloc: sh: 19,133; makefile: 487; ruby: 228
file content (24 lines) | stat: -rw-r--r-- 332 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
package main

import (
	"flag"
	"log"
)

type Release struct {
	Label    string
	Filename string
	SHA256   string
}

var SubCommand = flag.String("cmd", "", "Command: build or release")

func main() {
	flag.Parse()
	switch *SubCommand {
	case "release":
		mainRelease()
	default:
		log.Fatalln("Unknown command:", *SubCommand)
	}
}