formatting

This commit is contained in:
Soarinferret
2025-07-31 22:41:35 -05:00
parent e78b5f086a
commit 4b5bbd939c
3 changed files with 6 additions and 8 deletions

View File

@@ -14,7 +14,7 @@ import (
var rootCmd = &cobra.Command{
Use: "trmm-linux-installer",
Short: "Installs the Tactical RMM Agent on Linux",
Long: ``,
Long: ``,
//PersistentPreRun: func(cmd *cobra.Command, args []string) {
//},

View File

@@ -1,25 +1,24 @@
package cmd
import (
"fmt"
"os"
"os/exec"
"io"
"net/http"
"os"
"os/exec"
"path/filepath"
"strings"
"github.com/spf13/cobra"
"github.com/pterm/pterm"
"github.com/soarinferret/trmm-lam/internal/tacticalrmm"
"github.com/spf13/cobra"
)
// https://stackoverflow.com/a/33853856/13335339
func downloadFile(filepath string, url string) (err error) {
// Create the file
out, err := os.Create(filepath)
if err != nil {
if err != nil {
return err
}
defer out.Close()
@@ -38,7 +37,7 @@ func downloadFile(filepath string, url string) (err error) {
// Writer the body to file
_, err = io.Copy(out, resp.Body)
if err != nil {
if err != nil {
return err
}

View File

@@ -10,6 +10,5 @@ import (
var Version string
func main() {
cmd.Execute()
}