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.
Click to show internal directories.
Click to hide internal directories.