1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2026-01-03 22:39:23 +03:00

migrate open to branches with cli arg test

This commit is contained in:
Jesse Duffield
2023-02-19 13:54:15 +11:00
parent 76a1b501f2
commit 13ee0f0a5d
19 changed files with 19 additions and 47 deletions

View File

@@ -0,0 +1,18 @@
package branch
import (
"github.com/jesseduffield/lazygit/pkg/config"
. "github.com/jesseduffield/lazygit/pkg/integration/components"
)
var OpenWithCliArg = NewIntegrationTest(NewIntegrationTestArgs{
Description: "Open straight to branches panel using a CLI arg",
ExtraCmdArgs: "branch",
Skip: false,
SetupConfig: func(config *config.AppConfig) {},
SetupRepo: func(shell *Shell) {
},
Run: func(t *TestDriver, keys config.KeybindingConfig) {
t.Views().Branches().IsFocused()
},
})