Commit Graph

5 Commits (488518c625ef0a750d416ceb0634211b3119ba14)

Author SHA1 Message Date
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
OpenGnSys Support Team c1aae6e35e src: update copyright statement
use opengnsys@soleta.eu email instead of info@soleta.eu
2024-01-02 14:00:53 +01:00
Jose M. Guisado b1fc9cabb4 objects: add missing prog parameter in subcommands
The specific subcommand name is missing in some of the subcommands help
message. For example:

	$ ogcli list hardware
	usage: ogcli [-h] --client-ip CLIENT_IP
	ogcli: error: the following arguments are required: --client-ip

Fix this by adding the missing prog= parameter so argparse use this
instead of argv[0]. If no prog parameter is specified then argv[0] is
printed (i.e: "ogcli").
2023-10-05 11:21:19 +02:00
Jose M. Guisado 2f824d8429 send: add send reboot
Takes usual client options
(--client-ip, --room-id, --center-id)

Example:

> ogcli send reboot --client-ip 192.168.56.11
2022-05-25 10:56:14 +02:00