Commit Graph

7 Commits (7fd9c94c7b9336820e694d7e6738c1f5d75d3518)

Author SHA1 Message Date
Paulo Truta a44c44baa8 Added validation for argument in start/stop app command. Colorized error output on validation fail 2022-02-07 20:39:53 +00:00
Paulo Truta 9ccb3f1d71 Commented out unecessary logging (should be under --verbose flag), tidy up command logic, implemented stop and start app commands 2022-02-07 20:20:09 +00:00
Paulo Truta 2f36538e1e Installed urfave/cli/v2 lib and cleaned main(). Runs as service clock by default 2022-02-06 15:15:32 +00:00
Paulo Truta 9339e6cf09
Storage Module Basis (#13)
* 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
2021-06-13 12:03:36 +02:00
Paulo Truta df3f8fe904 Added system module, GetUptimeSeconds and GetUptimeFormatted funcs, taskGetSystemUptime 2021-05-31 11:21:14 +00:00
Paulo Truta 6cb3e198f0 Supporting connection to SQLite database 2021-05-02 08:52:32 +00:00
Malachi Soord 217309f10d
Add sum 2021-03-04 21:38:02 +01:00