| // Copyright 2019 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef SRC_LIB_ICU_TOOLS_EXTRACTOR_TZ_VERSION_H_ |
| #define SRC_LIB_ICU_TOOLS_EXTRACTOR_TZ_VERSION_H_ |
| |
| #include <ostream> |
| |
| #include "command.h" |
| |
| namespace icu_data_extractor { |
| |
| // Command: "tz-version" |
| // |
| // Extracts the time zone version ID (e.g. "2019c") from the loaded ICU data and |
| // writes it to the output path, if given, or to STDOUT otherwise. |
| class TzVersion : public icu_data_extractor::Command { |
| std::string_view Name() const final; |
| int Execute(const fxl::CommandLine& command_line, |
| const fxl::CommandLine& sub_command_line) const final; |
| void PrintDocs(std::ostream& os) const final; |
| }; |
| |
| } // namespace icu_data_extractor |
| |
| #endif // SRC_LIB_ICU_TOOLS_EXTRACTOR_TZ_VERSION_H_ |