Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

where is the .go-msfdb.yaml file #41

Open
iamwlb opened this issue Dec 20, 2021 · 1 comment
Open

where is the .go-msfdb.yaml file #41

iamwlb opened this issue Dec 20, 2021 · 1 comment
Labels
question Further information is requested

Comments

@iamwlb
Copy link

iamwlb commented Dec 20, 2021

config file (default is $HOME/.go-msfdb.yaml)
but where is .go-msfdb.yaml

@iamwlb iamwlb added the question Further information is requested label Dec 20, 2021
@MaineK00n
Copy link
Collaborator

By default, it will try to read the config in $HOME/.go-msfdb.yaml.
It does not generate $HOME/.go-msfdb.yaml.

go-msfdb/commands/root.go

Lines 88 to 101 in 4a9759b

if cfgFile != "" {
viper.SetConfigFile(cfgFile)
} else {
// Find home directory.
home, err := homedir.Dir()
if err != nil {
log15.Error("Failed to find home directory.", "err", err)
os.Exit(1)
}
// Search config in home directory with name ".go-msfdb" (without extension).
viper.AddConfigPath(home)
viper.SetConfigName(".go-msfdb")
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants