Line data Source code
1 : /*! 2 : * \file esys/repo/cli/app.cpp 3 : * \brief 4 : * 5 : * \cond 6 : * __legal_b__ 7 : * 8 : * Copyright (c) 2020-2021 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/app.h" 20 : 21 : namespace esys::repo::cli 22 : { 23 : 24 16 : App::App() = default; 25 : 26 16 : App::~App() = default; 27 : 28 0 : void App::set_version(const std::string &version) 29 : { 30 0 : AppBase::set_version(version); 31 0 : get_cmd_version().get_cmd().set_version(version); 32 0 : } 33 : 34 0 : CmdEnv &App::get_cmd_env() 35 : { 36 0 : return m_cmd_env; 37 : } 38 : 39 0 : CmdHelp &App::get_cmd_help() 40 : { 41 0 : return m_cmd_help; 42 : } 43 : 44 0 : CmdInfo &App::get_cmd_info() 45 : { 46 0 : return m_cmd_info; 47 : } 48 : 49 2 : CmdInit &App::get_cmd_init() 50 : { 51 2 : return m_cmd_init; 52 : } 53 : 54 0 : CmdList &App::get_cmd_list() 55 : { 56 0 : return m_cmd_list; 57 : } 58 : 59 0 : CmdManifest &App::get_cmd_manifest() 60 : { 61 0 : return m_cmd_manifest; 62 : } 63 : 64 0 : CmdMulti &App::get_cmd_multi() 65 : { 66 0 : return m_cmd_multi; 67 : } 68 : 69 0 : CmdStatus &App::get_cmd_status() 70 : { 71 0 : return m_cmd_status; 72 : } 73 : 74 0 : CmdSync &App::get_cmd_sync() 75 : { 76 0 : return m_cmd_sync; 77 : } 78 : 79 0 : CmdVersion &App::get_cmd_version() 80 : { 81 0 : return m_cmd_version; 82 : } 83 : 84 : } // namespace esys::repo::cli