Skip to content

Commit a6cafab

Browse files
style(log) config.toml template docs url (#1894)
* fix: config.toml template url * applied fixes to other places
1 parent d1137ad commit a6cafab

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

config/config_v1.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func convertToLatestConfig(pathToToml string) error {
135135
}
136136
str := strings.Replace(buf.String(), "\n [", "\n\n [", -1)
137137
str = fmt.Sprintf("%s\n\n%s",
138-
"# See README for details: https://vuls.io/docs/en/usage-settings.html",
138+
"# See README for details: https://vuls.io/docs/en/config.toml.html",
139139
str)
140140

141141
return os.WriteFile(realPath, []byte(str), 0600)

saas/uuid.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func writeToFile(cnf config.Config, path string) error {
140140
}
141141
str := strings.Replace(buf.String(), "\n [", "\n\n [", -1)
142142
str = fmt.Sprintf("%s\n\n%s",
143-
"# See README for details: https://vuls.io/docs/en/usage-settings.html",
143+
"# See README for details: https://vuls.io/docs/en/config.toml.html",
144144
str)
145145

146146
return os.WriteFile(realPath, []byte(str), 0600)

subcmds/configtest.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func (p *ConfigtestCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interfa
7777
msg := []string{
7878
fmt.Sprintf("Error loading %s", p.configPath),
7979
"If you update Vuls and get this error, there may be incompatible changes in config.toml",
80-
"Please check config.toml template : https://vuls.io/docs/en/usage-settings.html",
80+
"Please check config.toml template : https://vuls.io/docs/en/config.toml.html",
8181
}
8282
logging.Log.Errorf("%s\n%+v", strings.Join(msg, "\n"), err)
8383
return subcommands.ExitUsageError

subcmds/scan.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func (p *ScanCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{})
113113
msg := []string{
114114
fmt.Sprintf("Error loading %s", p.configPath),
115115
"If you update Vuls and get this error, there may be incompatible changes in config.toml",
116-
"Please check config.toml template : https://vuls.io/docs/en/usage-settings.html",
116+
"Please check config.toml template : https://vuls.io/docs/en/config.toml.html",
117117
}
118118
logging.Log.Errorf("%s\n%+v", strings.Join(msg, "\n"), err)
119119
return subcommands.ExitUsageError

0 commit comments

Comments
 (0)