From 890fbf26f3d1c72fcf6b3d3f606097d6f961663f Mon Sep 17 00:00:00 2001 From: Vuong <3168632+vuongggggg@users.noreply.github.com> Date: Mon, 21 Sep 2020 22:48:30 +0700 Subject: [PATCH] Fixed #70 - windows can build again --- cointop/cmd/server.go | 2 ++ cointop/cmd/win_server.go | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 cointop/cmd/win_server.go diff --git a/cointop/cmd/server.go b/cointop/cmd/server.go index 6427e16..d30da16 100644 --- a/cointop/cmd/server.go +++ b/cointop/cmd/server.go @@ -1,3 +1,5 @@ +//+build !windows + package cmd import ( diff --git a/cointop/cmd/win_server.go b/cointop/cmd/win_server.go new file mode 100644 index 0000000..247efb8 --- /dev/null +++ b/cointop/cmd/win_server.go @@ -0,0 +1,18 @@ +//+build windows + +package cmd + +import ( + "fmt" + + "github.com/spf13/cobra" +) + +func ServerCmd() *cobra.Command { + return &cobra.Command{ + RunE: func(cmd *cobra.Command, args []string) error { + fmt.Println("//TODO: implement pty ssh server for Windows") + return nil + }, + } +}