add multiple formats support

Signed-off-by: Xu Yang <xyang@ciq.com>
This commit is contained in:
Xu Yang
2024-03-19 01:48:08 -06:00
parent b6d74a2768
commit 16183e603c
12 changed files with 611 additions and 287 deletions

View File

@@ -133,9 +133,11 @@ message GetNodeList {
Long = 3;
All = 4;
FullAll = 5;
YAML = 6;
JSON = 7;
}
ListType type = 7;
repeated string Nodes = 8;
ListType type = 8;
repeated string Nodes = 9;
}
// Get the formated output as string
@@ -147,7 +149,9 @@ message NodeList {
message GetProfileList {
bool ShowAll = 1;
bool ShowFullAll = 2;
repeated string Profiles = 3;
bool ShowYaml = 3;
bool ShowJson = 4;
repeated string Profiles = 5;
}
// Get the formated output as string
message ProfileList {