From c227bc38d45ca3b86f678d069d6a890a27ce9b2c Mon Sep 17 00:00:00 2001 From: mahesh bhatiya Date: Sat, 7 Jun 2025 22:11:17 +0530 Subject: [PATCH 1/2] fix: correct Go version format in go.mod --- README.md | 17 +++++++++++++++++ go.mod | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..c6b8c3f --- /dev/null +++ b/README.md @@ -0,0 +1,17 @@ +# StackRoost CLI 🐧 + +A simple and powerful terminal-based tool to manage Linux web servers. Built in Go, it supports popular stacks like **Apache**, **Nginx**, and **Caddy**, with domain and user management features. + +--- + +## Features + +- Manage Apache, Nginx, and Caddy services +- Add, remove, and update virtual hosts/domains +- Manage Linux users for deployments +- Backup and restore configurations +- SSL configuration helpers +- Interactive CLI prompts +- Easy setup with clean terminal UI + +--- diff --git a/go.mod b/go.mod index 5af3214..bae5998 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module stackroost -go 1.22.3 +go 1.22 require github.com/spf13/cobra v1.9.1 From 4800710d941fc76e07b2522d2af00aded7d36fc8 Mon Sep 17 00:00:00 2001 From: mahesh bhatiya Date: Sat, 7 Jun 2025 22:18:33 +0530 Subject: [PATCH 2/2] fix: add package declaration to internal/utils.go to fix build error --- internal/utils.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/utils.go b/internal/utils.go index e69de29..5de376f 100644 --- a/internal/utils.go +++ b/internal/utils.go @@ -0,0 +1,5 @@ +package internal + +func IsNilOrEmpty(s string) bool { + return s == "" || s == "" +} \ No newline at end of file