Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "intercept", Short: "intercept an app with your device", Long: `Intercept app to tunnel your local Examples: # intercept an app with device id and appid kl intercept <device_id> <app_id> # intercept an app with device name and app readable id kl intercept <device_name> <app_readable_id> # alternative way kl intercept --device-id=<divice_id> --app-readable-id=<app_readable_id> `, Run: func(cmd *cobra.Command, args []string) { err := interceptApp(cmd, args) if err != nil { common.PrintError(err) return } fmt.Println("Interception done") }, }
addCmd represents the list command
View Source
var LeaveCmd = &cobra.Command{
Use: "leave",
Short: "close interception of an app which is intercepted",
Long: `Close Interception
Examples:
# close interception of app with device id and appid
kl leave intercept <device_id> <app_id>
# close interception an app with device name and app readable id
kl leave intercept <device_name> <app_readable_id>
# alternative way
kl leave intercept --device-id=<divice_id> --app-readable-id=<app_readable_id>
`,
}
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.