15 lines
271 B
Go
15 lines
271 B
Go
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
|
|
}
|