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