initial commit

This commit is contained in:
Zoe
2025-01-15 15:55:12 +00:00
commit bae27c4c54
4 changed files with 61 additions and 0 deletions

21
main.go Normal file
View File

@@ -0,0 +1,21 @@
package main
import (
"log"
"os"
)
func main() {
if len(os.Args) < 2 {
log.Fatal("Script requires a project path as an argument")
}
projectPath := os.Args[1]
log.Println("Running script for project", projectPath)
file, err := os.Create(projectPath + "/script.sh")
if err != nil {
log.Fatal(err)
}
defer file.Close()
file.WriteString("#!/bin/bash\n")
file.WriteString("echo \"Hello World\"\n")
}