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