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