intercept

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: MIT Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL