INNER CODE UNIT · Go

userHomeDir

projectdiscovery/cloudlist · internal/runner/options.go:177

func userHomeDir() string {
	usr, err := user.Current()
	if err != nil {
		gologger.Fatal().Msgf("Could not get user home directory: %s\n", err)
	}
	return usr.HomeDir
}

const defaultProviderConfigFile = `#  #Provider configuration file for cloudlist enumeration agent

#- # provider is the name of the provider
#  provider: do
#  # id is the name of the provider id
#  id: xxxx
#  # digitalocean_token is the API key for digitalocean cloud platform
#  digitalocean_token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#
#- # provider is the name of the provider

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…