/
githubmirror
/
lazygit
Обзор
Документация
Войти
/
githubmirror
/
lazygit
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
pkg/gui/context/prompt_context.go
30 строк
635 B
Stefan Haller
Refactor: add a separate Prompt view
05 сен 2025, 11:42
05 сен 2025, 11:42
5a630ae
Код
Авторство
О чём код?
package context import ( "github.com/jesseduffield/lazygit/pkg/gui/types" ) type PromptContext struct { *SimpleContext c *ContextCommon State ConfirmationContextState } var _ types.Context = (*PromptContext)(nil) func NewPromptContext( c *ContextCommon, ) *PromptContext { return &PromptContext{ c: c, SimpleContext: NewSimpleContext(NewBaseContext(NewBaseContextOpts{ View: c.Views().Prompt, WindowName: "prompt", Key: PROMPT_CONTEXT_KEY, Kind: types.TEMPORARY_POPUP, Focusable: true, HasUncontrolledBounds: true, })), } }