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 : CmdBuildInfo &App::get_cmd_build_info() 35 : { 36 0 : return m_cmd_build_info; 37 : } 38 : 39 0 : CmdEnv &App::get_cmd_env() 40 : { 41 0 : return m_cmd_env; 42 : } 43 : 44 0 : CmdHelp &App::get_cmd_help() 45 : { 46 0 : return m_cmd_help; 47 : } 48 : 49 0 : CmdInfo &App::get_cmd_info() 50 : { 51 0 : return m_cmd_info; 52 : } 53 : 54 2 : CmdInit &App::get_cmd_init() 55 : { 56 2 : return m_cmd_init; 57 : } 58 : 59 0 : CmdList &App::get_cmd_list() 60 : { 61 0 : return m_cmd_list; 62 : } 63 : 64 0 : CmdManifest &App::get_cmd_manifest() 65 : { 66 0 : return m_cmd_manifest; 67 : } 68 : 69 0 : CmdMulti &App::get_cmd_multi() 70 : { 71 0 : return m_cmd_multi; 72 : } 73 : 74 0 : CmdPin &App::get_cmd_pin() 75 : { 76 0 : return m_cmd_pin; 77 : } 78 : 79 0 : CmdStatus &App::get_cmd_status() 80 : { 81 0 : return m_cmd_status; 82 : } 83 : 84 0 : CmdSync &App::get_cmd_sync() 85 : { 86 0 : return m_cmd_sync; 87 : } 88 : 89 0 : CmdVersion &App::get_cmd_version() 90 : { 91 0 : return m_cmd_version; 92 : } 93 : 94 : } // namespace esys::repo::cli