Skip to content
This repository was archived by the owner on Dec 20, 2024. It is now read-only.

Commit e43e4a2

Browse files
committed
feature: pass the value of dfdaemon verbose flag to dfget
Signed-off-by: Starnop <[email protected]>
1 parent f7c9d03 commit e43e4a2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

dfdaemon/config/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ func (p *Properties) DFGetConfig() DFGetConfig {
145145
URLFilter: p.URLFilter,
146146
CallSystem: p.CallSystem,
147147
Notbs: p.Notbs,
148+
Verbose: p.Verbose,
148149
}
149150
}
150151

@@ -157,6 +158,7 @@ type DFGetConfig struct {
157158
URLFilter string `yaml:"urlfilter"`
158159
CallSystem string `yaml:"callsystem"`
159160
Notbs bool `yaml:"notbs"`
161+
Verbose bool `yaml:"verbose"`
160162
}
161163

162164
// RegistryMirror configures the mirror of the official docker registry

dfdaemon/downloader/dfget/dfget.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ func (dfGetter *DFGetter) getCommand(
7373
args = append(args, "--notbs")
7474
}
7575

76+
if dfGetter.config.Verbose {
77+
args = append(args, "--verbose")
78+
}
79+
7680
add := func(key, value string) {
7781
if v := strings.TrimSpace(value); v != "" {
7882
args = append(args, key, v)

0 commit comments

Comments
 (0)