From 1a52006c3d215196997a2cd12450795d4ae4a1ca Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 9 Aug 2024 18:16:51 +1000 Subject: Extract format implementation to its own file Split it to avoid pulling all string_utils dependencies for just format. --- src/parameters_parser.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parameters_parser.hh') diff --git a/src/parameters_parser.hh b/src/parameters_parser.hh index c11dc501..7d26c3bb 100644 --- a/src/parameters_parser.hh +++ b/src/parameters_parser.hh @@ -8,7 +8,7 @@ #include "optional.hh" #include "flags.hh" #include "string.hh" -#include "string_utils.hh" +#include "format.hh" #include -- cgit v1.2.3 From 64ed046e5a841520506e1954ff0bd756ea112d94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Arrufat?= Date: Fri, 16 Aug 2024 08:49:19 +0900 Subject: include headers cleanup --- src/parameters_parser.hh | 1 - 1 file changed, 1 deletion(-) (limited to 'src/parameters_parser.hh') diff --git a/src/parameters_parser.hh b/src/parameters_parser.hh index 7d26c3bb..f1ff8b73 100644 --- a/src/parameters_parser.hh +++ b/src/parameters_parser.hh @@ -6,7 +6,6 @@ #include "meta.hh" #include "array_view.hh" #include "optional.hh" -#include "flags.hh" #include "string.hh" #include "format.hh" -- cgit v1.2.3 From 50917b39ca410feac0f8dbf37b6db408aeedc2b8 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 22 Oct 2024 21:18:23 +1100 Subject: Remove now unused CompletionFlags Since shell-script-completions now runs the script asynchronously and unconditionally, there is no use for the CompletionFlags::Fast anymore which means we can remove that type altogether. --- src/parameters_parser.hh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/parameters_parser.hh') diff --git a/src/parameters_parser.hh b/src/parameters_parser.hh index f1ff8b73..1b91b6fc 100644 --- a/src/parameters_parser.hh +++ b/src/parameters_parser.hh @@ -40,9 +40,7 @@ struct wrong_argument_count : public parameter_error class Context; struct Completions; -enum class CompletionFlags; -using ArgCompleter = std::function; +using ArgCompleter = std::function; struct SwitchDesc { -- cgit v1.2.3