From 72c7dba3d0b6a55b48db9e262f95c99b6ff062bc Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Thu, 21 Sep 2023 16:26:08 +0200 Subject: [PATCH] satisfy linter stuff --- cmd/file_render.go | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/cmd/file_render.go b/cmd/file_render.go index 567e820dc..b6985340b 100644 --- a/cmd/file_render.go +++ b/cmd/file_render.go @@ -28,24 +28,24 @@ func newFileRenderCmd() *cobra.Command { renderCmd := &cobra.Command{ Use: "render", Short: "Combines multiple complete configuration files and renders them as one Kong declarative config file.", - Long: `Combines multiple complete configuration files and renders them as one Kong - declarative config file. + Long: `Combines multiple complete configuration files and renders them as one Kong +declarative config file. - This command renders a full declarative configuration in JSON or YAML format by assembling - multiple files and populating defaults and environment substitutions. - This command is useful to observe what configuration would be sent prior to synchronizing to - the gateway. +This command renders a full declarative configuration in JSON or YAML format by assembling +multiple files and populating defaults and environment substitutions. +This command is useful to observe what configuration would be sent prior to synchronizing to +the gateway. - In comparison to the "deck file merge" command, the render command accepts - complete configuration files, while "deck file merge" can operate on partial files. +In comparison to the "deck file merge" command, the render command accepts +complete configuration files, while "deck file merge" can operate on partial files. - For example, the following command takes two input files and renders them as one - combined JSON file: +For example, the following command takes two input files and renders them as one +combined JSON file: - deck file render kong1.yml kong2.yml -o kong3 --format json - `, - Args: cobra.ArbitraryArgs, - RunE: executeFileRenderCmd, + deck file render kong1.yml kong2.yml -o kong3 --format json +`, + Args: cobra.ArbitraryArgs, + RunE: executeFileRenderCmd, PreRunE: func(cmd *cobra.Command, args []string) error { fileRenderCmdKongStateFile = args if len(fileRenderCmdKongStateFile) == 0 {