mirror of
https://github.com/nestriness/cli.git
synced 2025-12-13 04:35:37 +02:00
✨ feat: Write cli executable as a go program.
This commit is contained in:
23
main.go
Normal file
23
main.go
Normal file
@@ -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)
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user