INNER CODE UNIT · Go

main

offen/docker-volume-backup · cmd/backup/main.go:10

func main() {
	foreground := flag.Bool("foreground", false, "run the tool in the foreground")
	profile := flag.String("profile", "", "collect runtime metrics and log them periodically on the given cron expression")
	flag.Parse()
	additionalArgs := flag.Args()
	c := newCommand()

	if len(additionalArgs) > 0 {
		switch additionalArgs[0] {
		case "print-config":
			c.must(runPrintConfig())
			return
		default:
			panic("unknown command: " + additionalArgs[0])
		}
	}
	if *foreground {
		opts := foregroundOpts{

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…