pldmtool: Add GetStatus firmware update command
Tested:
pldmtool fw_update --help
firmware update type commands
Usage: ./pldmtool fw_update [OPTIONS] SUBCOMMAND
Options:
-h,--help Print this help message and exit
Subcommands:
GetStatus Status of the FD
pldmtool fw_update GetStatus -m <eid>
{ "CurrentState": "IDLE",
"PreviousState": "IDLE",
"AuxState": "Not applicable in current state",
"AuxStateStatus": "AuxState is In Progress or Success",
"ProgressPercent": 101,
"ReasonCode": "Initialization of firmware device has occurred",
"UpdateOptionFlagsEnabled": 0
}
Signed-off-by: Tom Joseph <rushtotom@gmail.com>
Change-Id: I2eb41996ab0dcb1d00ac5b8b0e55846b0d4b28a5
diff --git a/pldmtool/pldm_fw_update_cmd.hpp b/pldmtool/pldm_fw_update_cmd.hpp
new file mode 100644
index 0000000..a1e2e5d
--- /dev/null
+++ b/pldmtool/pldm_fw_update_cmd.hpp
@@ -0,0 +1,15 @@
+#pragma once
+
+#include <CLI/CLI.hpp>
+
+namespace pldmtool
+{
+
+namespace fw_update
+{
+
+void registerCommand(CLI::App& app);
+
+} // namespace fw_update
+
+} // namespace pldmtool