diff mbox series

[3/3] swupdate-ipc: extend help for sendtohawkibt command

Message ID 20240415101906.45782-3-stefano.babic@swupdate.org
State Accepted
Delegated to: Stefano Babic
Headers show
Series [1/3] BUG: hawkbit: check if details are sent via IPC | expand

Commit Message

Stefano Babic April 15, 2024, 10:19 a.m. UTC
sendtohawkibt is quite cryptical because it just forwards parameters to
the Hawkbit Server. Add explanation in the help about paramneters.

Signed-off-by: Stefano Babic <stefano.babic@swupdate.org>
---
 tools/swupdate-ipc.c | 7 +++++++
 1 file changed, 7 insertions(+)

--
2.34.1
diff mbox series

Patch

diff --git a/tools/swupdate-ipc.c b/tools/swupdate-ipc.c
index a2502aa2..0dfaeac5 100644
--- a/tools/swupdate-ipc.c
+++ b/tools/swupdate-ipc.c
@@ -63,6 +63,13 @@  static void usage_setversion(const char *program) {
 static void usage_send_to_hawkbit(const char *program) {
 	fprintf(stdout, "\t %s <action id> <status> <finished> "
 			"<execution> <detail 1> <detail 2> ..\n", program);
+	fprintf(stdout, "\t\t <action -id> : 0 - asks SWUpdate to find the action_id (first env, then network)\n");
+	fprintf(stdout, "\t\t                > 0 - valid action_id stored by application during update\n");
+	fprintf(stdout, "\t\t <status>     : a valid state, see values in state.h\n");
+	fprintf(stdout, "\t\t <finished>   : one of \"success\" \"failure\" \"none\"\n");
+	fprintf(stdout, "\t\t <execution>  : one of \"closed\",\"proceeding\",\"canceled\", \"scheduled\", \"rejected\", \"resumed\", \"downloaded\", \"download\"\n");
+	fprintf(stdout, "\t\t <details>    : strings that are passed and stored by Hawkbit server (User information)\n");
+
 }

 static void usage_sysrestart(const char *programname)