Commit Graph

8 Commits

Author SHA1 Message Date
Ian Wijma a65ca4e37f "Added .help() method in the command configuration"
In this commit, the .help() method was moved to an earlier part of the command configuration. Previously, .help() was executed after defining options. The reason for this change was to improve code readability and ensure that the help command is processed in line with other commands, improving user experience by offering immediate assistance for all commands. This effective placement of .help() method should make it easier for users to understand how to interact with the command line interface.
2023-11-19 15:40:19 +11:00
Ian Wijma 7a43503c52 "Added delay option and improved error logging in process manager"
This commit introduces a delay option to the process manager. This option allows us to set the time delay before restarting a process that has crashed. This is useful in scenarios where an immediate restart might cause further issues or allow time for external dependencies to become available again.

It also refines the error logging by reducing the amount of crash logs printed. Now, only the last crash log is presented which aides in maintaining readability. A conflict prevention has been also added to reduce the chance of mixed usage between 'rpm' and 'rph' options.

The update also enforces tidiness by adding an extraneous file to the .gitignore list.
2023-11-19 15:38:49 +11:00
Ian Wijma 84f6c26361 Fix the retrying not working. 2023-11-19 14:21:54 +11:00
Ian Wijma 5c7b1081ad run.sh > test.sh to clearify the command is for testing purposes. 2023-11-19 13:37:03 +11:00
Ian Wijma 77e1f29417 Added stderr output to the test command & updated console output 2023-11-19 13:36:20 +11:00
Ian Wijma afccf3a5c5 Updated the run command to have a custom exit code 2023-11-19 13:31:53 +11:00
Ian Wijma e53eb5fd4d Added pkg 2023-11-19 13:30:11 +11:00
Ian Wijma 510d299276 Created Keep Running (kr) command 2023-11-19 13:28:59 +11:00