Documentation
¶
Index ¶
- Constants
- func ProcessGroupFromContext(ctx context.Context) (int, bool)
- func WithCompletionState(ctx context.Context, state *CompletionState) context.Context
- func WithProcessGroup(ctx context.Context, pgrp int) context.Context
- func WithShellVarAssignments(ctx context.Context, state *ShellVarAssignments) context.Context
- func WithShellVarLookup(ctx context.Context, lookup ShellVarLookup) context.Context
- func WithSignalDispatcher(ctx context.Context, dispatcher SignalDispatcher) context.Context
- func WithSignalFamily(ctx context.Context, family SignalFamily) context.Context
- type CompletionSpec
- type CompletionState
- func (s *CompletionState) Clear()
- func (s *CompletionState) Delete(name string)
- func (s *CompletionState) Get(name string) (CompletionSpec, bool)
- func (s *CompletionState) Keys() []string
- func (s *CompletionState) Set(name string, spec *CompletionSpec)
- func (s *CompletionState) Update(name string, fn func(*CompletionSpec)) CompletionSpec
- type ShellVarAssignments
- type ShellVarLookup
- type ShellVarUpdate
- type SignalDispatcher
- type SignalFamily
Constants ¶
View Source
const ( CompletionSpecDefaultKey = "__default__" CompletionSpecEmptyKey = "__empty__" )
Variables ¶
This section is empty.
Functions ¶
func ProcessGroupFromContext ¶ added in v0.0.23
func WithCompletionState ¶
func WithCompletionState(ctx context.Context, state *CompletionState) context.Context
func WithProcessGroup ¶ added in v0.0.23
func WithShellVarAssignments ¶ added in v0.0.18
func WithShellVarAssignments(ctx context.Context, state *ShellVarAssignments) context.Context
func WithShellVarLookup ¶ added in v0.0.23
func WithShellVarLookup(ctx context.Context, lookup ShellVarLookup) context.Context
func WithSignalDispatcher ¶ added in v0.0.23
func WithSignalDispatcher(ctx context.Context, dispatcher SignalDispatcher) context.Context
func WithSignalFamily ¶ added in v0.0.23
func WithSignalFamily(ctx context.Context, family SignalFamily) context.Context
Types ¶
type CompletionSpec ¶
type CompletionState ¶
type CompletionState struct {
// contains filtered or unexported fields
}
func CompletionStateFromContext ¶
func CompletionStateFromContext(ctx context.Context) *CompletionState
func NewCompletionState ¶
func NewCompletionState() *CompletionState
func (*CompletionState) Clear ¶
func (s *CompletionState) Clear()
func (*CompletionState) Delete ¶
func (s *CompletionState) Delete(name string)
func (*CompletionState) Get ¶
func (s *CompletionState) Get(name string) (CompletionSpec, bool)
func (*CompletionState) Keys ¶
func (s *CompletionState) Keys() []string
func (*CompletionState) Set ¶
func (s *CompletionState) Set(name string, spec *CompletionSpec)
func (*CompletionState) Update ¶
func (s *CompletionState) Update(name string, fn func(*CompletionSpec)) CompletionSpec
type ShellVarAssignments ¶ added in v0.0.18
type ShellVarAssignments struct {
// contains filtered or unexported fields
}
func NewShellVarAssignments ¶ added in v0.0.18
func NewShellVarAssignments() *ShellVarAssignments
func ShellVarAssignmentsFromContext ¶ added in v0.0.18
func ShellVarAssignmentsFromContext(ctx context.Context) *ShellVarAssignments
func (*ShellVarAssignments) Set ¶ added in v0.0.18
func (s *ShellVarAssignments) Set(name, value string)
func (*ShellVarAssignments) Snapshot ¶ added in v0.0.18
func (s *ShellVarAssignments) Snapshot() map[string]ShellVarUpdate
func (*ShellVarAssignments) Unset ¶ added in v0.0.18
func (s *ShellVarAssignments) Unset(name string)
type ShellVarLookup ¶ added in v0.0.23
func ShellVarLookupFromContext ¶ added in v0.0.23
func ShellVarLookupFromContext(ctx context.Context) ShellVarLookup
type ShellVarUpdate ¶ added in v0.0.18
type SignalDispatcher ¶ added in v0.0.23
func SignalDispatcherFromContext ¶ added in v0.0.23
func SignalDispatcherFromContext(ctx context.Context) SignalDispatcher
type SignalFamily ¶ added in v0.0.23
func SignalFamilyFromContext ¶ added in v0.0.23
func SignalFamilyFromContext(ctx context.Context) (SignalFamily, bool)
Click to show internal directories.
Click to hide internal directories.