Documentation
¶
Index ¶
- Constants
- func ExpandRef(ctx *Context, ref executable.Ref) executable.Ref
- type Context
- func (ctx *Context) AddCallback(callback func(*Context) error)
- func (ctx *Context) Finalize()
- func (ctx *Context) SetIO(stdIn, stdOut *os.File)
- func (ctx *Context) SetView(view tuikit.View) error
- func (ctx *Context) StdIn() *os.File
- func (ctx *Context) StdOut() *os.File
- func (ctx *Context) String() string
Constants ¶
View Source
const ( AppName = "flow" HeaderCtxKey = "ctx" )
Variables ¶
This section is empty.
Functions ¶
func ExpandRef ¶
func ExpandRef(ctx *Context, ref executable.Ref) executable.Ref
Types ¶
type Context ¶
type Context struct {
Ctx context.Context
CancelFunc context.CancelFunc
Config *config.Config
CurrentWorkspace *workspace.Workspace
TUIContainer *tuikit.Container
WorkspacesCache cache.WorkspaceCache
ExecutableCache cache.ExecutableCache
// Args includes the command line arguments passed to the exec command. It is only populated when that command is used.
Args []string
// ProcessTmpDir is the temporary directory for the current process. If set, it will be
// used to store temporary files all executable runs when the tmpDir value is specified.
ProcessTmpDir string
// contains filtered or unexported fields
}
func (*Context) AddCallback ¶ added in v1.0.2
Click to show internal directories.
Click to hide internal directories.