Debian Codegraph @

config/cmds.go

raw
1 package config
2
3 import (
4 "os"
5 )
6
7 func EditorCmds() []string {
8 return []string{
9 Compose().Editor,
10 os.Getenv("VISUAL"),
11 os.Getenv("EDITOR"),
12 "vi",
13 "nano",
14 }
15 }
16
17 func PagerCmds() []string {
18 return []string{
19 Viewer().Pager,
20 os.Getenv("PAGER"),
21 "less -Rc",
22 }
23 }