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