| package cli |
|
|
| import ( |
| "io" |
|
|
| "github.com/pinchtab/pinchtab/internal/cli/report" |
| "github.com/pinchtab/pinchtab/internal/config" |
| ) |
|
|
| type StartupBannerOptions = report.StartupBannerOptions |
| type SecurityWarning = report.SecurityWarning |
| type SecurityPosture = report.SecurityPosture |
| type SecurityPostureCheck = report.SecurityPostureCheck |
|
|
| func PrintStartupBanner(cfg *config.RuntimeConfig, opts StartupBannerOptions) { |
| report.PrintStartupBanner(cfg, opts) |
| } |
|
|
| func PrintSecuritySummary(w io.Writer, cfg *config.RuntimeConfig, prefix string, detailed bool) { |
| report.PrintSecuritySummary(w, cfg, prefix, detailed) |
| } |
|
|
| func HandleConfigShow(cfg *config.RuntimeConfig) { |
| report.HandleConfigShow(cfg) |
| } |
|
|
| func IsDaemonInstalled() bool { |
| return report.IsDaemonInstalled() |
| } |
|
|
| func IsDaemonRunning() bool { |
| return report.IsDaemonRunning() |
| } |
|
|
| func AssessSecurityWarnings(cfg *config.RuntimeConfig) []SecurityWarning { |
| return report.AssessSecurityWarnings(cfg) |
| } |
|
|
| func AssessSecurityPosture(cfg *config.RuntimeConfig) SecurityPosture { |
| return report.AssessSecurityPosture(cfg) |
| } |
|
|
| func RecommendedSecurityDefaultLines(cfg *config.RuntimeConfig) []string { |
| return report.RecommendedSecurityDefaultLines(cfg) |
| } |
|
|
| func RestoreSecurityDefaults() (string, bool, error) { |
| return report.RestoreSecurityDefaults() |
| } |
|
|
| func LogSecurityWarnings(cfg *config.RuntimeConfig) { |
| report.LogSecurityWarnings(cfg) |
| } |
|
|