// Manually-written JS bindings for the App struct in package
// git.okcu.io/root/drover-go/internal/gui.
//
// Wails Bind() exposes the app's methods at runtime under
// window.go.<package>.App.<Method>, where <package> is the Go package
// where App is defined (here: "gui"). These wrappers give us a stable
// import path from the React side and are the equivalent of what
// `wails generate module` would have produced if we used the standard
// flat layout.
//
// Whenever a new App method is added in internal/gui/app.go, mirror it here.

export function RunCheck(cfg)    { return window['go']['gui']['App']['RunCheck'](cfg) }
export function CancelCheck()    { return window['go']['gui']['App']['CancelCheck']() }
export function StartEngine(cfg) { return window['go']['gui']['App']['StartEngine'](cfg) }
export function StopEngine()     { return window['go']['gui']['App']['StopEngine']() }
export function GetStatus()      { return window['go']['gui']['App']['GetStatus']() }
export function Version()        { return window['go']['gui']['App']['Version']() }
export function Greet(name)      { return window['go']['gui']['App']['Greet'](name) }
