You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: deploy_bluegreen.go
    path of file: ./repos/porter/cli/cmd/commands
    
    the code of the file until where you have to start completion: package commands

import (
	"context"
	"fmt"
	"os"
	"time"

	"github.com/porter-dev/porter/cli/cmd/co
    
func registerCommand_Deploy(cliConf config.CLIConfig) *cobra.Command {
	deployCmd := &cobra.Command{
		Use: "deploy",
	}

	bluegreenCmd := &cobra.Command{
		Use:   "blue-green-switch",
		Short: "Automatically switches the traffic of a blue-green deployment once the new application is ready.",
		Run: func(cmd *cobra.Command, args []string) {
			err := checkLoginAndRunWithConfig(cmd, cliConf, args, bluegreenSwitch)
			if err != nil {
				os.Exit(1)
			}
		},
	}
	deployCmd.AddCommand(bluegreenCmd)

	bluegreenCmd.PersistentFlags().StringVar(
		&app,
		"app",
		"",
		"Application in the Porter dashboard",
	)

	bluegreenCmd.MarkPersistentFlagRequired("app")

	bluegreenCmd.PersistentFlags().StringVar(
		&tag,
		"tag",
		"",
		"The image tag to switch traffic to.",
	)

	bluegreenCmd.PersistentFlags().StringVar(
		&namespace,
		"namespace",
		"",
		"The namespace of the jobs.",
	)
	return deployCmd
}