mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-02-21 02:55:37 -08:00
parent
8ed1c90c28
commit
1a5f4819e1
|
@ -14,7 +14,7 @@ func (g *golang) init(props *properties, env environmentInfo) {
|
|||
props: props,
|
||||
commands: []string{"go"},
|
||||
versionParam: "version",
|
||||
extensions: []string{"*.go"},
|
||||
extensions: []string{"*.go", "go.mod"},
|
||||
versionRegex: `go(?P<version>[0-9]+.[0-9]+.[0-9]+)`,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ func (n *node) init(props *properties, env environmentInfo) {
|
|||
props: props,
|
||||
commands: []string{"node"},
|
||||
versionParam: "--version",
|
||||
extensions: []string{"*.js", "*.ts"},
|
||||
extensions: []string{"*.js", "*.ts", "package.json"},
|
||||
versionRegex: `(?P<version>[0-9]+.[0-9]+.[0-9]+)`,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue