context

package
v0.0.0-...-ef490db Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	OS string
	// is in ssh environment
	SSH bool
	// is in tmux
	Tmux bool

	PathInfo *PathInfo
	User     *user.User
	Conf     *config.Config
	VCSInfo  *vcs.VCSInfo
	// contains filtered or unexported fields
}

func CreateContext

func CreateContext() *Context

func (*Context) ReadCompleteInfo

func (c *Context) ReadCompleteInfo()

func (*Context) ReadPathInfo

func (c *Context) ReadPathInfo()

type PathInfo

type PathInfo struct {
	Orignal        string
	ShorternPrefix string
	BaseDir        string
	DangerZone     bool
}

Jump to

Keyboard shortcuts

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