1 Commits
Author SHA1 Message Date
Paulo Truta e80aaf7d18 Release/1.3.0 (#40)
* Implemented scaffolding for BrowserDev tasks and implemented taskGetBrowserDevPassword

* Added SetBrowserDevPasswordFile and ReplaceTextInFile funcs

* Added browserDevProxyPath

* Polished code and added missing pieces

* Improved Makefile with info and install + build processes

* Added vscode tasks support

* Added run command and reverted build-all to old logic, added run vscode task

* Added GetBrowserDevStatus task and into schedules

* Fixed check for tasks.GetBrowserStatus()

* Reverted to no result log in Exec command
2024-12-07 01:26:45 +01:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1147,7 +1147,7 @@ func taskGetBrowserDevStatus() string {
"sh",
[]string{"-c", "systemctl --quiet is-active code-server@root && echo 'active' || echo 'inactive'"},
)
if browserDevStatus != "" {
if browserDevStatus == "active" {
fmt.Println("Browser Dev Environment is running")
utils.WriteOption("BROWSERDEV_STATUS", "running")
return "{\"status\": \"running\"}"
+1 -1
View File
@@ -54,7 +54,7 @@ func Exec(path string, command string, args []string) string {
// log.Println(fmt.Sprint(err) + ": " + stderr.String()) // ... Silence...
}
log.Println("Result: " + out.String()) // ... Silence ...
// log.Println("Result: " + out.String()) // ... Silence ...
return strings.Trim(out.String(), " \n")