Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AttachCmd = &cobra.Command{ Use: "attach", Short: "Attach to a running agent", Long: `Attach to a running agent`, Run: func(cmd *cobra.Command, args []string) { remoteUrl := remoteUrlArg if remoteUrl == "" { fmt.Fprintln(os.Stderr, "URL is required") os.Exit(1) } if !strings.HasPrefix(remoteUrl, "http") { remoteUrl = "http://" + remoteUrl } remoteUrl = strings.TrimRight(remoteUrl, "/") if err := runAttach(remoteUrl); err != nil { fmt.Fprintf(os.Stderr, "Attach failed: %+v\n", err) os.Exit(1) } }, }
Functions ¶
func ReadScreenOverHTTP ¶
Types ¶
type ChannelWriter ¶
type ChannelWriter struct {
// contains filtered or unexported fields
}
func (*ChannelWriter) Receive ¶
func (c *ChannelWriter) Receive() ([]byte, bool)
Click to show internal directories.
Click to hide internal directories.