MCPcopy
hub / github.com/jesseduffield/lazygit / Instruction

Interface Instruction

pkg/app/daemon/daemon.go:105–111  ·  view source on GitHub ↗

An Instruction is a command to be run by lazygit in daemon mode. It is serialized to json and passed to lazygit via environment variables

Source from the content-addressed store, hash-verified

103// An Instruction is a command to be run by lazygit in daemon mode.
104// It is serialized to json and passed to lazygit via environment variables
105type Instruction interface {
106 Kind() DaemonKind
107 SerializedInstructions() string
108
109 // runs the instruction
110 run(common *common.Common) error
111}
112
113func serializeInstruction[T any](instruction T) string {
114 jsonData, err := json.Marshal(instruction)

Callers 8

ToEnvVarsFunction · 0.65
setDefaultValsFunction · 0.65
isZeroValueFunction · 0.65
isStructFunction · 0.65
ToEnvVarsFunction · 0.65
RunMethod · 0.65
HandleFunction · 0.65

Implementers 9

ExitImmediatelyInstructionpkg/app/daemon/daemon.go
ChangeTodoActionsInstructionpkg/app/daemon/daemon.go
DropMergeCommitInstructionpkg/app/daemon/daemon.go
MoveFixupCommitDownInstructionpkg/app/daemon/daemon.go
MoveTodosUpInstructionpkg/app/daemon/daemon.go
MoveTodosDownInstructionpkg/app/daemon/daemon.go
InsertBreakInstructionpkg/app/daemon/daemon.go
WriteRebaseTodoInstructionpkg/app/daemon/daemon.go

Calls

no outgoing calls

Tested by

no test coverage detected