Documentation ¶
Index ¶
- func ExpandHome(pathstr string) string
- func FileExists(targetpath string) bool
- func GetMatches(regEx string, lines []string) (paramsMap map[string]string)
- func LoadFile(targetpath string) ([]string, error)
- func MakeTarArchive(buf io.Writer, targets []string) error
- func TargetExists(target string) bool
- type TmuxSession
- type TmuxSessions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandHome ¶
ExpandHome expand the tilde in a given path.
func FileExists ¶
func GetMatches ¶
GetMatches parses each line and sticks the findings in a map
func TargetExists ¶
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
Click to show internal directories.
Click to hide internal directories.