You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
style: wrap two over-long lines to satisfy the lll linter
The --init-mocks flag usage string and the mutual-exclusivity error message
each exceeded the 150-char limit; split them across lines. No behavior change.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
fs.StringVar(&c.StaticFiles, "static-files", "client", "Location of the static files to serve (index.html, etc.)")
41
41
fs.IntVar(&c.HistoryMaxRetention, "history-retention", 0, "Maximum number of calls to keep in the history per session (0 = no limit)")
42
42
fs.StringVar(&c.PersistenceDirectory, "persistence-directory", "", "If defined, the directory where the sessions will be synchronized")
43
-
fs.StringVar(&c.InitMocks, "init-mocks", "", "If defined, a YAML file of mocks (same format as POST /mocks) loaded into a session at startup; mutually exclusive with --persistence-directory")
43
+
fs.StringVar(&c.InitMocks, "init-mocks", "",
44
+
"If set, load mocks from a YAML file (POST /mocks format) into a session at startup; "+
45
+
"mutually exclusive with --persistence-directory")
44
46
fs.BoolVar(&c.TLSEnable, "tls-enable", false, "Enable TLS using the provided certificate")
45
47
fs.StringVar(&c.TLSCertFile, "tls-cert-file", "/etc/smocker/tls/certs/cert.pem", "Path to TLS certificate file ")
46
48
fs.StringVar(&c.TLSKeyFile, "tls-private-key-file", "/etc/smocker/tls/private/key.pem", "Path to TLS key file")
@@ -110,7 +112,8 @@ func main() {
110
112
// fixed, read-only starting point, while persistence resumes (and rewrites) whatever state it
111
113
// last held. Both define the boot state, so allowing both would be ambiguous on restart.
112
114
ifc.InitMocks!=""&&c.PersistenceDirectory!="" {
113
-
slog.Error("--init-mocks and --persistence-directory are mutually exclusive: seed mocks from a file (ephemeral) or persist sessions to a directory, not both")
115
+
slog.Error("--init-mocks and --persistence-directory are mutually exclusive: "+
116
+
"seed mocks from a file (ephemeral) or persist sessions to a directory, not both")
0 commit comments