mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
refactor: move proxy block message rendering to presentation layer (#364)
* refactor: move proxy block message rendering to presentation layer * refactor: introduce ui.ProxyPresenter with injected advisory source * feat: friendly ecosystem labels in proxy block messages * test: cover ecosystemLabel derivation * fix: address review feedback on block context assertions and empty reference line
This commit is contained in:
@@ -795,6 +795,12 @@ func Get() *RuntimeConfig {
|
||||
return globalConfig
|
||||
}
|
||||
|
||||
// AdvisoryMessage returns the org-configured advisory message appended to
|
||||
// policy block output. Empty when not configured.
|
||||
func AdvisoryMessage() string {
|
||||
return globalConfig.Config.AdvisoryMessage
|
||||
}
|
||||
|
||||
func ConfigureSandbox(mayDownloadPackages bool) {
|
||||
if globalConfig.Config.Sandbox.Enabled {
|
||||
// Apply sandbox to all commands if EnforceAlways=true, otherwise only to
|
||||
|
||||
Reference in New Issue
Block a user