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: login.go
    path of file: ./repos/hoverfly/hoverctl/cmd
    
    the code of the file until where you have to start completion: package cmd

import (
	"errors"
	"fmt"

	"github.com/SpectoLabs/hoverfly/hoverctl/configuration"
	"github.com/SpectoLabs/hoverfly/hoverctl/wrapper"
	"github.com/spf13/cobra"
)

var username, password string

var loginCmd = &cobra.Command{
	Use:   "login",
	Short: "Login to Hoverfly",
	Long: `
Will authenticate against the /api/token-auth API endpoint 
target Hoverfly instance using the provided username and 
password.

The generated aut
    
func init() {
	RootCmd.AddCommand(loginCmd)

	loginCmd.Flags().String("new-target", "", "A name for a new target that hoverctl will create and associate the Hoverfly instance to")
	loginCmd.Flags().Int("admin-port", 0, "A port number for the Hoverfly API/GUI. Overrides the default Hoverfly admin port (8888)")
	loginCmd.Flags().Int("proxy-port", 0, "A port number for the Hoverfly proxy. Overrides the default Hoverfly proxy port (8500)")
	loginCmd.Flags().String("host", "", "A host on which a Hoverfly instance is running. Overrides the default Hoverfly host (localhost). HTTP protocol is assumed if scheme is not specified.")
	loginCmd.Flags().StringVar(&username, "username", "", "Username to authenticate against Hoverfly with")
	loginCmd.Flags().StringVar(&password, "password", "", "Password to authenticate against Hoverfly with")
}