cmdtype

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdType

type CmdType int

CmdType represents the cmd types.

const (
	// Noop means no operation cmd, its a placeholder for some purpose.
	Noop CmdType = iota
	// Local means the commands will be executed locally.
	Local
	// SCP means the commands will scp some files to remote hosts.
	SCP
	// SSH means the ssh commands will executed by ssh in remote hosts.
	SSH
)

func Parse

func Parse(cmd string) (CmdType, string)

Parse parses the type of cmd

Jump to

Keyboard shortcuts

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