Skip to content

Commit

Permalink
✨ feat: Write cli executable as a go program.
Browse files Browse the repository at this point in the history
  • Loading branch information
wanjohiryan committed Jun 1, 2024
1 parent b1634c4 commit 4c723d8
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/netrisdotme/cli

go 1.22.2
23 changes: 23 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package main

import (
"fmt"
"runtime"
)

func main() {

switch runtime.GOOS {
case "windows":
//This is where we should build our nestri "nest"
fmt.Println("You're on Windows!")
case "darwin":
//do nothing (probably deploy to AWS, Vast.ai and the rest) plus Linux & Windows
fmt.Println("You're on macOS!")
case "linux":
//This is where we should build our nestri "server"
fmt.Println("You're on Linux!")
default:
fmt.Printf("Unsupported operating system: %s\n", runtime.GOOS)
}
}

0 comments on commit 4c723d8

Please sign in to comment.