2017-11-18 17:09:20 +01:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1+ */
|
2016-04-20 19:37:46 +02:00
|
|
|
|
|
|
|
#include "output-mode.h"
|
|
|
|
#include "string-table.h"
|
|
|
|
|
|
|
|
static const char *const output_mode_table[_OUTPUT_MODE_MAX] = {
|
|
|
|
[OUTPUT_SHORT] = "short",
|
2016-08-04 01:45:07 +02:00
|
|
|
[OUTPUT_SHORT_FULL] = "short-full",
|
2016-04-20 19:37:46 +02:00
|
|
|
[OUTPUT_SHORT_ISO] = "short-iso",
|
2017-05-08 02:23:49 +02:00
|
|
|
[OUTPUT_SHORT_ISO_PRECISE] = "short-iso-precise",
|
2016-04-20 19:37:46 +02:00
|
|
|
[OUTPUT_SHORT_PRECISE] = "short-precise",
|
|
|
|
[OUTPUT_SHORT_MONOTONIC] = "short-monotonic",
|
2016-04-20 19:46:37 +02:00
|
|
|
[OUTPUT_SHORT_UNIX] = "short-unix",
|
2016-04-20 19:37:46 +02:00
|
|
|
[OUTPUT_VERBOSE] = "verbose",
|
|
|
|
[OUTPUT_EXPORT] = "export",
|
|
|
|
[OUTPUT_JSON] = "json",
|
|
|
|
[OUTPUT_JSON_PRETTY] = "json-pretty",
|
|
|
|
[OUTPUT_JSON_SSE] = "json-sse",
|
2018-07-23 20:22:30 +02:00
|
|
|
[OUTPUT_JSON_SEQ] = "json-seq",
|
2018-05-22 13:22:00 +02:00
|
|
|
[OUTPUT_CAT] = "cat",
|
|
|
|
[OUTPUT_WITH_UNIT] = "with-unit",
|
2016-04-20 19:37:46 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
DEFINE_STRING_TABLE_LOOKUP(output_mode, OutputMode);
|