/
githubmirror
/
lazygit
Обзор
Документация
Войти
/
githubmirror
/
lazygit
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
pkg/gui/context/confirmation_context.go
35 строк
773 B
Jesse Duffield
split context common from helper common
30 апр 2023, 06:19
30 апр 2023, 06:19
43251e7
Код
Авторство
О чём код?
package context import ( "github.com/jesseduffield/lazygit/pkg/gui/types" ) type ConfirmationContext struct { *SimpleContext c *ContextCommon State ConfirmationContextState } type ConfirmationContextState struct { OnConfirm func() error OnClose func() error } var _ types.Context = (*ConfirmationContext)(nil) func NewConfirmationContext( c *ContextCommon, ) *ConfirmationContext { return &ConfirmationContext{ c: c, SimpleContext: NewSimpleContext(NewBaseContext(NewBaseContextOpts{ View: c.Views().Confirmation, WindowName: "confirmation", Key: CONFIRMATION_CONTEXT_KEY, Kind: types.TEMPORARY_POPUP, Focusable: true, HasUncontrolledBounds: true, })), } }