Commit Graph

4 Commits (4b77e1bca8ab69ea352a83d8520cb0e390db460f)

Author SHA1 Message Date
Alejandro Sirgo Rica 10a3897f92 cli: ensure the program returns 0 on success and 1 on error
propagate a returncode in each operation and make it the
returncode of the program.

Prevent sys.exit calls in post(), get() and delete() request
handlers to enable cleanup code and error handling. Keep a basic
error log inside the request functions if the connection can't
be established or if the response contains an error code.
2024-11-21 17:05:24 +01:00
Alejandro Sirgo Rica f26a8c3d23 improve missing clients error reporting in multiple commands
All the commands that need target clients now have a more descriptive
error message when the clients of the command are missing.
2024-03-04 10:14:37 +01:00
Alejandro Sirgo Rica b242ee9f6e change 'ogcli send' command into 'ogcli request'
By using the word 'request' the command becomes more semantic and
represents the 'best effort' nature of the communication with
ogserver.
2024-03-04 09:58:41 +01:00
Alejandro Sirgo Rica 9f78cc5ace add 'send session' to request the boot from a client's partition
example to boot OS from 10.141.10.22 disk 1 partition 2

	send session --client-ip 10.141.10.22 --disk 1 --part 2
2024-02-29 12:33:59 +01:00