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: viper.go
    path of file: ./repos/steampipe/pkg/cmdconfig
    
    the code of the file until where you have to start completion: package cmdconfig

import (
	"fmt"
	"github.com/turbot/steampipe/pkg/filepaths"
	"log"
	"os"

	filehelpers "github.com/turbot/go-kit/files"
	"github.com/turbot/steampipe/pkg/steampipeconfig"

	"github.com/spf13/cobra"
	"github.com/spf13/viper"
	"github.com/turbot/go-kit/types"
	"github.com/turbot/steampipe/pkg/constants"
)

// Viper fetches the global viper instance
func Viper() *viper.Viper {
	return viper.GetViper()
}

// bootstrapViper sets up viper with the essent
    
func setBaseDefaults() error {
	pipesInstallDir, err := filehelpers.Tildefy(filepaths.DefaultPipesInstallDir)
	if err != nil {
		return err
	}
	defaults := map[string]interface{}{
		// global general options
		constants.ArgTelemetry:       constants.TelemetryInfo,
		constants.ArgUpdateCheck:     true,
		constants.ArgPipesInstallDir: pipesInstallDir,

		// workspace profile
		constants.ArgAutoComplete:  true,
		constants.ArgIntrospection: constants.IntrospectionNone,

		// from global database options
		constants.ArgDatabasePort:         constants.DatabaseDefaultPort,
		constants.ArgDatabaseStartTimeout: constants.DBStartTimeout.Seconds(),
		constants.ArgServiceCacheEnabled:  true,
		constants.ArgCacheMaxTtl:          300,

		// dashboard
		constants.ArgDashboardStartTimeout: constants.DashboardStartTimeout.Seconds(),

		// memory
		constants.ArgMemoryMaxMbPlugin: 1024,
		constants.ArgMemoryMaxMb:       1024,
	}

	for k, v := range defaults {
		viper.SetDefault(k, v)
	}
	return nil
}