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: update.go
    path of file: ./repos/juju/cmd/juju/secretbackends
    
    the code of the file until where you have to start completion: // Copyright 2022 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.

package secretbackends

import (
	"fmt"

	"github.com/juju/cmd/v3"
	"github.com/juju/errors"
	"github.com/juju/gnuflag"

	"github.com/juju/juju/api/client/secretbackends"
	jujucmd "github.com/juju/juju/cmd"
	"github.com/juju/juju/cmd/modelcmd"
	_ "github.com/juju/juju/secrets/provider/all"
)

type updateSecretBackendCommand struct {
	modelcmd.ControllerCommandBase

	UpdateSecretBackendsAPIFunc func() (UpdateSecretBackendsAPI, error)

	Name  string
	Force bool

	// Attributes from a file.
	ConfigFile cmd.FileVar
	// Attributes from key value args.
	KeyValueAttrs map[string]interface{}
	Reset         []string
}

var updateSecretBackendsDoc = `
Updates a
    
func (c *updateSecretBackendCommand) Run(ctxt *cmd.Context) error {
	attrs, err := readFile(ctxt, c.ConfigFile)
	if err != nil {
		return errors.Trace(err)
	}
	for k, v := range c.KeyValueAttrs {
		attrs[k] = v
	}

	tokenRotateInterval, err := parseTokenRotate(attrs, true)
	if err != nil {
		return errors.Trace(err)
	}

	var nameChange string
	if n, ok := attrs["name"]; ok {
		delete(attrs, "name")
		nameChange = fmt.Sprintf("%v", n)
	}
	backend := secretbackends.UpdateSecretBackend{
		Name:                c.Name,
		TokenRotateInterval: tokenRotateInterval,
		Config:              attrs,
		Reset:               c.Reset,
	}
	if nameChange != "" {
		backend.NameChange = &nameChange
	}

	api, err := c.UpdateSecretBackendsAPIFunc()
	if err != nil {
		return errors.Trace(err)
	}
	defer api.Close()

	err = api.UpdateSecretBackend(backend, c.Force)
	return errors.Trace(err)
}