From 071cdf6d8af5bf95ed21d9faea22da615d45ebda Mon Sep 17 00:00:00 2001 From: Sascha Roloff Date: Mon, 20 Feb 2023 12:58:55 +0100 Subject: Style fixes in just-mr --- src/other_tools/just_mr/cli.hpp | 2 +- src/other_tools/just_mr/main.cpp | 2 +- src/other_tools/just_mr/utils.hpp | 1 + src/other_tools/utils/curl_easy_handle.hpp | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/other_tools/just_mr/cli.hpp b/src/other_tools/just_mr/cli.hpp index 148d2c85..869dbafd 100644 --- a/src/other_tools/just_mr/cli.hpp +++ b/src/other_tools/just_mr/cli.hpp @@ -158,4 +158,4 @@ static inline void SetupMultiRepoUpdateArguments( ->type_name(""); } -#endif // INCLUDED_SRC_OTHER_TOOLS_JUST_MR_CLI_HPP \ No newline at end of file +#endif // INCLUDED_SRC_OTHER_TOOLS_JUST_MR_CLI_HPP diff --git a/src/other_tools/just_mr/main.cpp b/src/other_tools/just_mr/main.cpp index 7b4c3b6b..6e114a49 100644 --- a/src/other_tools/just_mr/main.cpp +++ b/src/other_tools/just_mr/main.cpp @@ -99,7 +99,7 @@ void SetupDefaultLogging() { "update", "Advance Git commit IDs and print updated just-mr configuration."); auto* cmd_do = app.add_subcommand( - "do", "Canonical way of specifying just subcommands. "); + "do", "Canonical way of specifying just subcommands."); cmd_do->set_help_flag(); // disable help flag // define just subcommands std::vector cmd_just_subcmds{}; diff --git a/src/other_tools/just_mr/utils.hpp b/src/other_tools/just_mr/utils.hpp index 16274657..841f4158 100644 --- a/src/other_tools/just_mr/utils.hpp +++ b/src/other_tools/just_mr/utils.hpp @@ -49,6 +49,7 @@ struct JustSubCmdFlags { bool config; bool build_root; }; + // ordered, so that we have replicability std::map const kKnownJustSubcommands{ {"version", {false, false}}, diff --git a/src/other_tools/utils/curl_easy_handle.hpp b/src/other_tools/utils/curl_easy_handle.hpp index 4f6f33c9..c22f6c1d 100644 --- a/src/other_tools/utils/curl_easy_handle.hpp +++ b/src/other_tools/utils/curl_easy_handle.hpp @@ -83,4 +83,4 @@ class CurlEasyHandle { -> std::streamsize; }; -#endif // INCLUDED_SRC_OTHER_TOOLS_UTILS_CURL_EASY_HANDLE_HPP \ No newline at end of file +#endif // INCLUDED_SRC_OTHER_TOOLS_UTILS_CURL_EASY_HANDLE_HPP -- cgit v1.2.3