MCPcopy Create free account
hub / github.com/nikivdev/go / findEditor

Function findEditor

cli/flow/main.go:2805–2812  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2803}
2804
2805func findEditor() string {
2806 for _, env := range []string{"GIT_EDITOR", "VISUAL", "EDITOR"} {
2807 if val := strings.TrimSpace(os.Getenv(env)); val != "" {
2808 return val
2809 }
2810 }
2811 return "vi"
2812}
2813
2814func readConfirmationChoice(ctx *snap.Context) (byte, error) {
2815 if file, ok := ctx.Stdin().(*os.File); ok {

Callers 1

editCommitMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected