sessions

package
v0.0.0-...-ed293d0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandHome

func ExpandHome(pathstr string) string

ExpandHome expand the tilde in a given path.

func FileExists

func FileExists(targetpath string) bool

func GetMatches

func GetMatches(regEx string, lines []string) (paramsMap map[string]string)

GetMatches parses each line and sticks the findings in a map

func LoadFile

func LoadFile(targetpath string) ([]string, error)

func MakeTarArchive

func MakeTarArchive(buf io.Writer, targets []string) error

func TargetExists

func TargetExists(target string) bool

Types

type TmuxSession

type TmuxSession struct {
	Name        string
	Configfile  string
	Environment string
	Workdir     string
	Description string
}

func NewTmuxSession

func NewTmuxSession(sessionname string) *TmuxSession

func (TmuxSession) Archive

func (tm TmuxSession) Archive(archivename string) error

func (*TmuxSession) LoadConfig

func (tm *TmuxSession) LoadConfig()

func (TmuxSession) TargetPaths

func (tm TmuxSession) TargetPaths() (targets []string)

type TmuxSessions

type TmuxSessions struct {
	Sessions []TmuxSession
}

func NewTmuxSessions

func NewTmuxSessions() *TmuxSessions

Jump to

Keyboard shortcuts

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