We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0cb110 commit 3a4be22Copy full SHA for 3a4be22
internal/pkg/start/start.go
@@ -24,7 +24,7 @@ func installToolsIfNotExist() error {
24
return err
25
}
26
27
- if !t.Stopped() {
+ if t.Stopped != nil && !t.Stopped() {
28
if err := t.Start(); err != nil {
29
30
internal/pkg/start/tool/tool.go
@@ -5,8 +5,10 @@ type stopedFunc func() bool
5
type installFunc func() error
6
type startFunc func() error
7
type tool struct {
8
- Name string
9
- Exists existsFunc
+ Name string
+ Exists existsFunc
10
+ // Stopped can be nil if it is not needed.
11
+ // if Stopped != nil -> Start can't be nil too
12
Stopped stopedFunc
13
Install installFunc
14
Start startFunc
0 commit comments