7 "mvdan.cc/sh/v3/expand"
8 "mvdan.cc/sh/v3/syntax"
11// Expand is a wrapper around [expand.Literal]. It will escape the input
12// string, expand any shell symbols (such as '~') and resolve any environment
14func Expand(s string) (string, error) {
18 p := syntax.NewParser()
19 word, err := p.Document(strings.NewReader(s))
23 cfg := &expand.Config{
24 Env: expand.FuncEnviron(os.Getenv),
28 return expand.Literal(cfg, word)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list