You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add --dry-run flag to toggle-on, toggle-off, and archive commands
The API already supports dryRun as a query parameter on PATCH
/api/v2/flags. The auto-generated `flags update` command exposes it,
but the hand-rolled toggle and archive commands passed nil for query
params. This wires --dry-run through to MakeRequest on all three.
Also adds a Query field to MockClient so tests can verify query params.
Made-with: Cursor
Copy file name to clipboardExpand all lines: cmd/cliflags/flags.go
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,7 @@ const (
33
33
CorsEnabledFlag="cors-enabled"
34
34
CorsOriginFlag="cors-origin"
35
35
DataFlag="data"
36
+
DryRunFlag="dry-run"
36
37
DevStreamURIFlag="dev-stream-uri"
37
38
EmailsFlag="emails"
38
39
EnvironmentFlag="environment"
@@ -51,6 +52,7 @@ const (
51
52
CorsEnabledFlagDescription="Enable CORS headers for browser-based developer tools (default: false)"
52
53
CorsOriginFlagDescription="Allowed CORS origin. Use '*' for all origins (default: '*')"
53
54
DevStreamURIDescription="Streaming service endpoint that the dev server uses to obtain authoritative flag data. This may be a LaunchDarkly or Relay Proxy endpoint"
55
+
DryRunFlagDescription="Validate the change without persisting it. Returns a preview of the result."
0 commit comments