taskStartWs() (a full './ws -b': render + docker compose up --build) ran
synchronously inside the tick-1 schedule, before GetNextTask() could run.
When the VM's docker daemon is slow or wedged, edgeboxctl stays blocked
for hours or days and dashboard tasks (e.g. enable_ssh_access) sit in the
queue unprocessed.
- run the scheduled WS bring-up in a goroutine; the task loop no longer
waits for it
- add a busy timeout to the shared sqlite connection string so edgeboxctl
waits for the API's write locks instead of erroring
* 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
* Added systemd service file
* Added make install command (copies binary to local bin and adds service file
* Makefile has intall-prod and install-cloud commands
* Added build-cloud to Makefile
* Fix env var key GOOS
* Added taskSetReleaseVersion for edgeboxctl version option write into DB
* taskGetSystemUptime to run every 5 ticks
* Added support for detecting main disk in cloud version
* Added missing import
* Finding main device in test
* Refactored GetDevices and test to use release_version
* Added utils.getIP function, set to run as a 60 tick scheduled task
* Added taskEnablePublicDashboard and taskDisablePublicDashboard
* Added utils.WriteOption and refactor, added enablePublicDashb0oard
* Finalizing online support for dashboard, cloud version support
* Added task SetupCloudOptions
* Added couple of func description comments
* Early return statement (thanks @inverse)
* Using IsPublicDashboard in DisablePublicDashboard func
* Added constants for release version and device types, added diagnostics.GetReleaseVersion
* Removed codecov from test action
* Added storage module, base structs, getDevices() func, taskGetStorageDevices (ticks every 30)
* GetDevices now returns a complete description w/ disk partitions
* Added InUse flag to Device, fixed logic bugs
* Added disk space usage for partitions in use by the system
* Cleanup
* Added UsageStat and UsageSplit filling for in use devices
* Changed value of lsblk block usage output to bytes
* Cleanup, small fixes
* Added ExecAndGetLines util func
* Added explicit detection of disk or part block type, ignoring non-suppoorted devices
* Added command line tool dependencies for the project in README file
* Added comment to func ExecAndGetLines
* Removed GetMySQLDbConnectionDetails()
* Added tests to utils module
* Fix invalid argument type for Exec family of tests
* Removed too much verbosity from utils.GetPath when no env file is available, added new argument (path) to Exec family of funcs
* Added new path argument to utils.Exec... test
* Fixed TestExec
* Added spaces trim to Exec result
* Trimming spaces and newlines from result of Exec
* Better visibility for test result log of TestExec
* Added ExampleExecAndStream test
* Added Example tests with failure status for ExecAndStream
* Added branch to test for valid key in GetPath
* Added missing t.Fail() statements in utils_test.go
* Added storage_test.go file, smoke test
* TestGetDevices