// +build windows

package edgectl

import (
	"github.com/pkg/errors"
	"github.com/spf13/cobra"

	"github.com/datawire/ambassador/pkg/supervisor"
)

// GuessRunAsInfo attempts to construct a RunAsInfo for the user logged in at
// the primary display
func GuessRunAsInfo(_ *supervisor.Process) (*RunAsInfo, error) {
	return nil, errors.New("Not implemented on this platform")
}

func LaunchDaemon(_ *cobra.Command, _ []string) error {
	return errors.New("Not implemented on this platform")
}

// GetFreePort asks the kernel for a free open port that is ready to use.
// Similar to telepresence.utilities.find_free_port()
func GetFreePort() (int, error) {
	return 0, errors.New("Not implemented on this platform")
}

// DaemonWorks returns whether the daemon can function on this platform
func DaemonWorks() bool {
	return false
}

// +build windows

package edgectl

import (
	"github.com/pkg/errors"
	"github.com/spf13/cobra"

	"github.com/datawire/ambassador/pkg/supervisor"
)

// GuessRunAsInfo attempts to construct a RunAsInfo for the user logged in at
// the primary display
func GuessRunAsInfo(_ *supervisor.Process) (*RunAsInfo, error) {
	return nil, errors.New("Not implemented on this platform")
}

func launchDaemon(_ *cobra.Command, _ []string) error {
	return errors.New("Not implemented on this platform")
}

// GetFreePort asks the kernel for a free open port that is ready to use.
// Similar to telepresence.utilities.find_free_port()
func GetFreePort() (int, error) {
	return 0, errors.New("Not implemented on this platform")
}

// DaemonWorks returns whether the daemon can function on this platform
func DaemonWorks() bool {
	return false
}

--- 
+++ 
@@ -15,7 +15,7 @@
 	return nil, errors.New("Not implemented on this platform")
 }
 
-func launchDaemon(_ *cobra.Command, _ []string) error {
+func LaunchDaemon(_ *cobra.Command, _ []string) error {
 	return errors.New("Not implemented on this platform")
 }
 
Change private->public name for Windows

Signed-off-by: Alvaro Saurin <95275619247e0a0a4a5f7a8d5144a85ee8f50dbb@gmail.com>
