Inital commit

This commit is contained in:
2026-06-24 13:44:39 -04:00
commit f098d5f170
15 changed files with 471 additions and 0 deletions

21
server/restart.go Normal file
View File

@@ -0,0 +1,21 @@
package server
import (
"log"
"os"
"os/exec"
"github.com/spf13/cobra"
)
func Restart(cmd *cobra.Command, args []string) {
dir := args[0]
if err := os.Chdir(dir); err != nil {
log.Fatal(err)
}
start_cmd := exec.Command("docker", "compose", "restart")
if err := start_cmd.Run(); err != nil {
log.Fatal(err)
}
}