Line data Source code
1 : /*! 2 : * \file esys/repo/cli/cmdversion_cli.cpp 3 : * \brief 4 : * 5 : * \cond 6 : * __legal_b__ 7 : * 8 : * Copyright (c) 2020-2023 Michel Gillet 9 : * Distributed under the MIT License. 10 : * (See accompanying file LICENSE.txt or 11 : * copy at https://opensource.org/licenses/MIT) 12 : * 13 : * __legal_e__ 14 : * \endcond 15 : * 16 : */ 17 : 18 : #include "esys/repo/esysrepo_prec.h" 19 : #include "esys/repo/cli/cmdversion.h" 20 : 21 : #include <msword2md/cpp/string.h> 22 : 23 : #include <termcolor/termcolor.hpp> 24 : 25 : #include <vector> 26 : 27 : namespace esys::repo::cli 28 : { 29 : 30 : #include "esys/repo/cli/cmdversion_doc.cpp" 31 : 32 17 : CmdVersion::CmdVersion(AppBase *app) 33 34 : : BaseType(app, "version", "Print version information") 34 : { 35 17 : } 36 : 37 17 : CmdVersion::~CmdVersion() = default; 38 : 39 3 : std::shared_ptr<po::options_description> CmdVersion::get_desc() 40 : { 41 3 : return nullptr; 42 : } 43 : 44 5 : int CmdVersion::configure_cmd(CmdType &cmd) 45 : { 46 5 : return 0; 47 : } 48 : 49 0 : int CmdVersion::print_doc(std::ostream &os) 50 : { 51 0 : os << cmdversion_doc_strings; 52 0 : return 0; 53 : } 54 : 55 : } // namespace esys::repo::cli