(ts tools.ToolSet)
| 1083 | } |
| 1084 | |
| 1085 | func lifecycleStateForUnsupervised(ts tools.ToolSet) lifecycle.State { |
| 1086 | if s, ok := ts.(*tools.StartableToolSet); ok && !s.IsStarted() { |
| 1087 | return lifecycle.StateStopped |
| 1088 | } |
| 1089 | return lifecycle.StateReady |
| 1090 | } |
| 1091 | |
| 1092 | // nameFor picks a stable, user-visible name for a toolset. We look for |
| 1093 | // any inner toolset that implements tools.Named (walked via tools.As so |
no test coverage detected