From a0f0fd98efa12ef33959badcc25ff568e8b242b4 Mon Sep 17 00:00:00 2001 From: saturneric Date: Wed, 6 Dec 2023 21:10:48 +0800 Subject: feat: move test to src and add submodule googletest --- src/cmd.cpp | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'src/cmd.cpp') diff --git a/src/cmd.cpp b/src/cmd.cpp index 24080a08..f0d748e0 100644 --- a/src/cmd.cpp +++ b/src/cmd.cpp @@ -36,23 +36,23 @@ // GpgFrontend #include "GpgFrontendBuildInfo.h" -#include "spdlog/common.h" +#include "type.h" namespace po = boost::program_options; auto PrintVersion() -> int { std::cout << PROJECT_NAME << " " << "v" << VERSION_MAJOR << "." << VERSION_MINOR << "." - << VERSION_PATCH << std::endl; + << VERSION_PATCH << '\n'; std::cout - << "Copyright (C) 2021 Saturneric " << std::endl + << "Copyright (C) 2021 Saturneric " << '\n' << _("This is free software; see the source for copying conditions.") - << std::endl - << std::endl; + << '\n' + << '\n'; - std::cout << _("Build Timestamp: ") << BUILD_TIMESTAMP << std::endl - << _("Build Version: ") << BUILD_VERSION << std::endl - << _("Source Code Version: ") << GIT_VERSION << std::endl; + std::cout << _("Build Timestamp: ") << BUILD_TIMESTAMP << '\n' + << _("Build Version: ") << BUILD_VERSION << '\n' + << _("Source Code Version: ") << GIT_VERSION << '\n'; return 0; } @@ -77,4 +77,6 @@ auto ParseLogLevel(const po::variables_map& vm) -> spdlog::level::level_enum { } return spdlog::level::info; -} \ No newline at end of file +} + +auto RunTest(int argc, char** argv) {} \ No newline at end of file -- cgit v1.2.3