You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
574 B
34 lines
574 B
// Copyright (c) Tailscale Inc & contributors
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
// connector-gen is a tool to generate app connector configuration and flags from service provider address data.
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
func help() {
|
|
fmt.Fprintf(os.Stderr, "Usage: %s [help|github|aws] [subcommand-arguments]\n", os.Args[0])
|
|
}
|
|
|
|
func main() {
|
|
if len(os.Args) < 2 {
|
|
help()
|
|
os.Exit(128)
|
|
}
|
|
|
|
switch os.Args[1] {
|
|
case "help", "-h", "--help":
|
|
help()
|
|
os.Exit(0)
|
|
case "github":
|
|
github()
|
|
case "aws":
|
|
aws()
|
|
default:
|
|
help()
|
|
os.Exit(128)
|
|
}
|
|
}
|
|
|