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

clitps

package
v1.3.104 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package clitps cmd/skywire-cli/commands/tps/tps.go c4-vis-cli

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "tps",
	Short: "Control embedded Transport Setup Node",
	Long: `Commands to control the embedded Transport Setup Node (TPS).

The embedded TPS allows this visor to manage transports on other visors
that trust this visor's TPS public key.

To enable embedded TPS, set 'tps_sk' in the visor config.`,
	Run: func(cmd *cobra.Command, _ []string) {
		rpcClient, err := clirpc.Client(cmd.Flags())
		if err != nil {
			internal.PrintFatalError(cmd.Flags(), fmt.Errorf("RPC connection failed: %w", err))
		}
		defer rpcClient.Close()

		status, err := rpcClient.TPSStatus()
		if err != nil {
			internal.PrintFatalError(cmd.Flags(), fmt.Errorf("failed to get TPS status: %w", err))
		}

		internal.Catch(cmd.Flags(), cliout.Print(cmd, clitps.Status{
			Enabled: status.Enabled, PubKey: fmt.Sprint(status.PubKey),
		}))
	},
}

RootCmd is the TPS command group

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