Skip to content

Commit f611ce3

Browse files
authored
plugin: Add diff_launguage to PlanPreview result models (#6083)
* add diff_language to PlanPreviewResult Signed-off-by: t-kikuc <tkikuchi07f@gmail.com> * add diff_launguage to PluginPlanPreviewResult model Signed-off-by: t-kikuc <tkikuchi07f@gmail.com> --------- Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
1 parent 4bc0456 commit f611ce3

File tree

8 files changed

+93
-22
lines changed

8 files changed

+93
-22
lines changed

pkg/model/planpreview.pb.go

Lines changed: 17 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/model/planpreview.pb.validate.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/model/planpreview.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,8 @@ message PluginPlanPreviewResult {
8383
string deploy_target = 2;
8484
bytes plan_summary = 3;
8585
bytes plan_details = 4;
86+
87+
// The language to render the details like "diff","hcl".
88+
// If this is empty, "diff" will be used by default.
89+
string diff_language = 5;
8690
}

pkg/plugin/api/v1alpha1/planpreview/api.pb.go

Lines changed: 29 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/plugin/api/v1alpha1/planpreview/api.pb.validate.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/plugin/api/v1alpha1/planpreview/api.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,8 @@ message PlanPreviewResult{
4949
bool no_change = 3;
5050
// Content of the result.
5151
bytes details = 4;
52+
53+
// The language to render the details like "diff","hcl".
54+
// If this is empty, "diff" will be used by default.
55+
string diff_language = 5;
5256
}

web/model/planpreview_pb.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ export class PluginPlanPreviewResult extends jspb.Message {
155155
getPlanDetails_asB64(): string;
156156
setPlanDetails(value: Uint8Array | string): PluginPlanPreviewResult;
157157

158+
getDiffLanguage(): string;
159+
setDiffLanguage(value: string): PluginPlanPreviewResult;
160+
158161
serializeBinary(): Uint8Array;
159162
toObject(includeInstance?: boolean): PluginPlanPreviewResult.AsObject;
160163
static toObject(includeInstance: boolean, msg: PluginPlanPreviewResult): PluginPlanPreviewResult.AsObject;
@@ -169,6 +172,7 @@ export namespace PluginPlanPreviewResult {
169172
deployTarget: string,
170173
planSummary: Uint8Array | string,
171174
planDetails: Uint8Array | string,
175+
diffLanguage: string,
172176
}
173177
}
174178

web/model/planpreview_pb.js

Lines changed: 31 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)