Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RemotePythonCmd = &cobra.Command{ Use: "python [file]", Short: "Runs a remote Python shell", Long: `Runs a remote Python shell with a local script file.`, Args: cobra.ExactArgs(1), Run: func(cmd *cobra.Command, args []string) { podID, _ := cmd.Flags().GetString("pod_id") file := args[0] fmt.Println("Running remote Python shell...") if err := PythonOverSSH(podID, file); err != nil { fmt.Fprintf(os.Stderr, "Error executing Python over SSH: %v\n", err) } }, }
Functions ¶
func PythonOverSSH ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.