mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-16 03:31:39 +00:00
cmd/tailscale: use platform specific license link
This commit is contained in:
parent
79cf550823
commit
d1dd04e327
@ -6,6 +6,7 @@ package cli
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"runtime"
|
||||||
|
|
||||||
"github.com/peterbourgon/ff/v3/ffcli"
|
"github.com/peterbourgon/ff/v3/ffcli"
|
||||||
)
|
)
|
||||||
@ -19,11 +20,23 @@ var licensesCmd = &ffcli.Command{
|
|||||||
}
|
}
|
||||||
|
|
||||||
func runLicenses(ctx context.Context, args []string) error {
|
func runLicenses(ctx context.Context, args []string) error {
|
||||||
|
var licenseURL string
|
||||||
|
switch runtime.GOOS {
|
||||||
|
case "android":
|
||||||
|
licenseURL = "https://tailscale.com/licenses/android"
|
||||||
|
case "darwin", "ios":
|
||||||
|
licenseURL = "https://tailscale.com/licenses/apple"
|
||||||
|
case "windows":
|
||||||
|
licenseURL = "https://tailscale.com/licenses/windows"
|
||||||
|
default:
|
||||||
|
licenseURL = "https://tailscale.com/licenses/tailscale"
|
||||||
|
}
|
||||||
|
|
||||||
outln(`
|
outln(`
|
||||||
Tailscale wouldn't be possible without the contributions of thousands of open
|
Tailscale wouldn't be possible without the contributions of thousands of open
|
||||||
source developers. To see the open source packages included in Tailscale and
|
source developers. To see the open source packages included in Tailscale and
|
||||||
their respective license information, visit:
|
their respective license information, visit:
|
||||||
|
|
||||||
https://tailscale.com/licenses/tailscale`)
|
` + licenseURL)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user