summaryrefslogtreecommitdiff
path: root/src/cli.zig
diff options
context:
space:
mode:
authorMitchell Hashimoto <m@mitchellh.com>2025-06-28 13:06:36 -0700
committerMitchell Hashimoto <m@mitchellh.com>2025-06-28 13:06:43 -0700
commit84432a7beb01ffdc87812a3f3ddde2dc74475010 (patch)
treeb65120f277af45d3cdfdad8197312a1b40a33759 /src/cli.zig
parent206d41844e88176a398f149e8e2c8f6e2fdbd28a (diff)
config: more general purpose backwards compatibility handlers
Fixes #7706 We previously had a very specific backwards compatibility handler for handling renamed fields. We always knew that wouldn't scale but I wanted to wait for a real case. Well, #7706 is a real case, so here we are. This commit makes our backwards compatibility handler more general purpose, and makes a special-case handler for renamed fields built on top of this same general purpose system. The new system lets us do a lot more with regards to backwards compatibility. To start, this addresses #7706 by allowing us to handle a removed single enum value of a still-existing field.
Diffstat (limited to 'src/cli.zig')
-rw-r--r--src/cli.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cli.zig b/src/cli.zig
index 4336501a8..151e6e648 100644
--- a/src/cli.zig
+++ b/src/cli.zig
@@ -2,6 +2,8 @@ const diags = @import("cli/diagnostics.zig");
pub const args = @import("cli/args.zig");
pub const Action = @import("cli/action.zig").Action;
+pub const CompatibilityHandler = args.CompatibilityHandler;
+pub const compatibilityRenamed = args.compatibilityRenamed;
pub const DiagnosticList = diags.DiagnosticList;
pub const Diagnostic = diags.Diagnostic;
pub const Location = diags.Location;