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
Copy file name to clipboardExpand all lines: internal/cli/cli.go
+34-1Lines changed: 34 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,8 @@ type Config struct {
24
24
ColorModestring// "auto", "always", "never"
25
25
Verbosebool// --verbose (shortcut for --log-level=debug)
26
26
LogLevelstring// "" = unset; one of "error", "warn", "info", "debug"
27
+
InstallDirstring// --install-dir=DIR base install directory; all non-bootstrap files (logs, hook errors, binary placement) live under this dir. "" w/ InstallDirSet=true means "explicitly disabled" (no file logging).
28
+
InstallDirSetbool// true if --install-dir was passed (empty value = disable file logging for this run)
Copy file name to clipboardExpand all lines: internal/config/config.go
+42Lines changed: 42 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@ var (
23
23
OutputFormatstring// "" means default (pretty)
24
24
HTMLOutputFilestring// "" means not set
25
25
LogLevelstring// "" means default (info); one of error/warn/info/debug
26
+
InstallDirstring// "" means default (~/.stepsecurity); non-empty makes the agent put all its files (logs, hook errors, future state) under this directory. Bootstrap config.json itself stays at the legacy location. Per-run opt-out is the CLI flag --install-dir=. Resolution: --install-dir flag > STEPSECURITY_HOME env > this field > default — see internal/paths.
26
27
)
27
28
28
29
// ConfigFile is the JSON structure persisted to ~/.stepsecurity/config.json.
0 commit comments