Help us shape the future of Go! Take the 2026 Go Developer Survey

ts

package
v1.42.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DownCmd = &cobra.Command{
	Use:   "down",
	Short: "take down the tailscale service",
	Long:  `This call 'sudo tailscale down' under the hood..`,
	RunE: func(cmd *cobra.Command, _args []string) error {
		headerStyle := lipgloss.NewStyle().
			Bold(true).
			Foreground(theme.Primary).
			MarginBottom(1)
		if !ui.DisableProgress {
			fmt.Fprintln(log.Out, headerStyle.Render("🔌 Tailscale Service Down"))
		}

		log.Start("Taking down the tailscale service")
		tsDownCmd := execCommand("sudo", "tailscale", "down")
		err := cmdutil.StartChildProcess(tsDownCmd)
		if err != nil {
			return err
		}
		return nil
	},
}
View Source
var TailscaleCmd = &cobra.Command{
	Use:   "tailscale",
	Short: "A helper for the tailscale command",
	Long:  `This command will help manage various aspects of Tailscale.`,
	Run: func(cmd *cobra.Command, _args []string) {
		fmt.Println("tailscale called")
	},
	Aliases: []string{"ts"},
}
View Source
var UpCmd = &cobra.Command{
	Use:   "up",
	Short: "bring up the tailscale service",
	Long:  `This call 'sudo tailscale up' under the hood..`,
	RunE: func(cmd *cobra.Command, _args []string) error {
		headerStyle := lipgloss.NewStyle().
			Bold(true).
			Foreground(theme.Primary).
			MarginBottom(1)
		if !ui.DisableProgress {
			fmt.Fprintln(log.Out, headerStyle.Render("🐉 Tailscale Service Up"))
		}

		log.Start("Bringing up the tailscale service")
		tsUpCmd := execCommand("sudo", "tailscale", "up")
		err := cmdutil.StartChildProcess(tsUpCmd)
		if err != nil {
			return err
		}
		return nil
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL