Line data Source code
1 : /*! 2 : * \file esys/repo/exe/cmdbuildinfo.cpp 3 : * \brief 4 : * 5 : * \cond 6 : * __legal_b__ 7 : * 8 : * Copyright (c) 2026 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/exe/cmdbuildinfo.h" 20 : #include "esys/repo/buildinfo.h" 21 : 22 : namespace esys::repo::exe 23 : { 24 : 25 16 : CmdBuildInfo::CmdBuildInfo() 26 16 : : Cmd("BuildInfo") 27 : { 28 16 : set_print_cmd_name_by_base(false); 29 16 : } 30 : 31 16 : CmdBuildInfo::~CmdBuildInfo() = default; 32 : 33 0 : Result CmdBuildInfo::impl_run() 34 : { 35 0 : info(BuildInfo::get().format_report()); 36 0 : return ESYSREPO_RESULT(ResultCode::OK); 37 : } 38 : 39 : } // namespace esys::repo::exe