15 lines
252 B
Go
15 lines
252 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"isle/bootstrap"
|
|
)
|
|
|
|
func (ctx subCmdCtx) getHosts() ([]bootstrap.Host, error) {
|
|
res, err := newDaemonRPCClient().GetHosts(ctx)
|
|
if err != nil {
|
|
return nil, fmt.Errorf("calling GetHosts: %w", err)
|
|
}
|
|
return res, nil
|
|
}
|