(writer io.Writer, varsInfo []varInfo)
| 223 | } |
| 224 | |
| 225 | func displayInterpolationVariables(writer io.Writer, varsInfo []varInfo) { |
| 226 | // Display all variables in a table format |
| 227 | _, _ = fmt.Fprintln(writer, "\nFound the following variables in configuration:") |
| 228 | |
| 229 | w := tabwriter.NewWriter(writer, 0, 0, 3, ' ', 0) |
| 230 | _, _ = fmt.Fprintln(w, "VARIABLE\tVALUE\tSOURCE\tREQUIRED\tDEFAULT") |
| 231 | sort.Slice(varsInfo, func(a, b int) bool { |
| 232 | return varsInfo[a].name < varsInfo[b].name |
| 233 | }) |
| 234 | for _, info := range varsInfo { |
| 235 | required := "no" |
| 236 | if info.required { |
| 237 | required = "yes" |
| 238 | } |
| 239 | _, _ = fmt.Fprintf(w, "%s\t%s\t%s\t%s\t%s\n", |
| 240 | info.name, |
| 241 | info.value, |
| 242 | info.source, |
| 243 | required, |
| 244 | info.defaultValue, |
| 245 | ) |
| 246 | } |
| 247 | _ = w.Flush() |
| 248 | } |
| 249 | |
| 250 | func displayLocationRemoteStack(dockerCli command.Cli, project *types.Project, options buildOptions) { |
| 251 | mainComposeFile := options.ProjectOptions.ConfigPaths[0] //nolint:staticcheck |
no outgoing calls