// Copyright (c) Tailscale Inc & contributors
// SPDX-License-Identifier: BSD-3-Clause

package cli

import "tailscale.com/util/miragebrand"

func currentProductName() string {
	if miragebrand.CurrentProcessUsesMirageBranding() {
		return miragebrand.ProductName()
	}
	return "Tailscale"
}

func currentDaemonName() string {
	if miragebrand.CurrentProcessUsesMirageBranding() {
		return miragebrand.DaemonBinaryName()
	}
	return "tailscaled"
}

func currentServiceDisplayName() string {
	if miragebrand.CurrentProcessUsesMirageBranding() {
		return miragebrand.ProductName()
	}
	return "Tailscale"
}

func currentLocalAPIName() string {
	return currentProductName() + " LocalAPI"
}

func currentDebugCommandPrefix() string {
	return currentCLIName() + " debug"
}

func currentNetworkLockCommandPrefix() string {
	return currentCLIName() + " lock"
}

func currentSynologyPackageName() string {
	return currentProductName()
}

func currentSynologyPackageDaemonPath() string {
	return "/var/packages/" + currentSynologyPackageName() + "/target/bin/" + currentDaemonName()
}

func currentSynologyServiceName() string {
	return "pkgctl-" + currentSynologyPackageName() + ".service"
}
