Commit Graph

31 Commits (cli-support)

Author SHA1 Message Date
Paulo Truta 01dc4943b1 Various polishments, now validating that ws is ready to run for every command 2022-02-14 17:23:08 +00:00
Paulo Truta ac9376686c Merge branch 'cli-support' of https://github.com/edgebox-iot/edgeboxctl into cli-support 2022-02-13 14:40:10 +00:00
Paulo Truta 09f07c01db Fixed shorthand command and fixed incomplete func comment 2022-02-13 14:40:04 +00:00
Paulo Truta 23f9926b4b
Update cmd/edgeboxctl/main.go
Co-authored-by: Malachi Soord <inverse.chi@gmail.com>
2022-02-12 13:36:35 +01:00
Paulo Truta 9eb47f3248 Implemented list command + task. colorjson output disabled for this command (bug detected) 2022-02-09 23:27:33 +00:00
Paulo Truta a2492ef59c Implemented command for tunnel setup and stubs for enabling and disabling the tunnel# 2022-02-09 23:06:50 +00:00
Paulo Truta 1427a023fd Reworked command route handler logic, fixed arguments for enable_online commands 2022-02-09 22:53:15 +00:00
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 6a61ac4d17 Using fmt.Sprintf instead of casting int to string 2022-02-06 17:25:41 +00:00
Paulo Truta c88726917f Minor adjustments, Example poc for sub commands with 'app start' and 'app stop' working concepts 2022-02-06 17:10:02 +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 81b545f868 Fix wrong handling of task arguments in systemIterator 2021-05-22 13:30:23 +00:00
Paulo Truta d975710445 Added initial debug message of SQLite DB location 2021-05-03 21:02:09 +00:00
Paulo Truta 0ed5297f6d Renaming everything to edgeboxctl 2021-03-04 12:43:49 +00:00
Paulo Truta 595c87c19c Extracted isSystemReady to outer loop 2021-02-18 23:08:28 +00:00
Paulo Truta 57a9ef3eed Moved sleep instruction to after execution of lined task 2021-02-18 23:02:31 +00:00
Paulo Truta 59707b8abd Fixed small typo, replaced DB connection details in Makefile by .env loading 2021-02-17 12:10:15 +01:00
Paulo Truta ad28e1a505 Added edgeapps package, cleaned up redundancies 2021-02-15 20:37:16 +01:00
Paulo Truta 9f20211bf4 Introduced tick counter and ExecuteSchedules for execution of recurrent no argument tasks 2021-02-15 18:14:46 +00:00
Paulo Truta c3d283c243 Check for .ready file in ws directory 2021-02-13 21:52:08 +01:00
Paulo Truta 47df72777b Added base task execution algo 2021-02-13 21:49:09 +01:00
Paulo Truta 4bb060ba5f Laying out the structure of the Tasks package, and how it will be called in the systemIterator in main 2021-02-13 17:04:57 +01:00
Paulo Truta 8845cb11de Renamed module database into tasks 2021-02-13 16:06:13 +01:00
Paulo Truta 375bb03dfe Added database module with exportable functions 2021-02-13 15:51:14 +01:00
Paulo Truta 28cb163f6d Added specific signal catch only for SIGQUIT 2021-02-12 18:11:36 +00:00
Paulo Truta ad330274db Added base execution loop with readiness check 2021-02-12 18:51:21 +01:00
Paulo Truta 5a4ef2de41 Restructured with helper functions for readiness check 2021-02-12 18:42:22 +01:00
Malachi Soord 972a77173a
Fix 2021-02-11 21:48:41 +01:00
Malachi Soord ef9ab09640
Use fmt 2021-02-11 21:38:43 +01:00
Malachi Soord 9ec7cfd80d
Move main.go 2021-02-11 21:33:05 +01:00