sshman

package
v0.0.0-...-8729f90 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DisablePrintHost bool
)

Functions

func AddAlias

func AddAlias(addpath, identityfile string, kvConfig map[string]string, pathShowFlag bool, args []string, disablePrints ...bool) error

func BackupSSH

func BackupSSH(args []string, disablePrints ...bool) error

func DeleteAlias

func DeleteAlias(pathShowFlag bool, args []string, disablePrints ...bool) error

func Execute

func Execute(args ...string)

func GetCmd_sshMan

func GetCmd_sshMan() *cobra.Command

func GetOption

func GetOption(alias, optionname string, ignorecases ...bool) (ret string, err error)

func Init_SshMan

func Init_SshMan(parent ...*cobra.Command)

func ListMatchAlias

func ListMatchAlias(IgnoreCase bool, args []string) (alias []string, err error)

func ListMatchFirstAlias

func ListMatchFirstAlias(IgnoreCase bool, args []string) (alias string, err error)

func ListSSH

func ListSSH(ign, pathShowFlag, onname bool, args []string, paths ...string) error

func UpdateSSH

func UpdateSSH(remname, identityfile string, kvConfig map[string]string, pathShowFlag bool, args []string, disablePrints ...bool) error

Types

type SshConfig

type SshConfig struct {
	// contains filtered or unexported fields
}

func NewSshConfig

func NewSshConfig(path string) *SshConfig

func (*SshConfig) ListSSH

func (sc *SshConfig) ListSSH(ign, pathShowFlag, onname bool, args []string) error

Jump to

Keyboard shortcuts

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