Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit cf0650c

Browse files
committed
Added verbose output for pkgassets
1 parent 63aa0cf commit cf0650c

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

cmd/pkgassets/pkgassets.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func main() {
110110
app.BoolVar(&showHelp, "h,help", false, "display help")
111111
app.BoolVar(&showLicense, "l,license", false, "display license")
112112
app.BoolVar(&showVersion, "v,version", false, "display version")
113-
app.BoolVar(&showVerbose, "verbose", false, "verbose output")
113+
app.BoolVar(&showVerbose, "V,verbose", false, "verbose output")
114114
app.BoolVar(&showExamples, "examples", false, "display example(s)")
115115
app.StringVar(&outputFName, "o,output", "", "output filename")
116116
app.BoolVar(&generateMarkdown, "generate-markdown", false, "generate markdown documentation")
@@ -224,15 +224,18 @@ func main() {
224224
%s = map[string][]byte{`, mapVName, packageName, mapVName)
225225
// Walk the asset directory structure and for each file found at it to the map...
226226
if err = filepath.Walk(assetDir, func(walkingPath string, info os.FileInfo, err error) error {
227-
if showVerbose {
228-
fmt.Printf("walkingPath %q\n", walkingPath)
229-
}
230227
if info.IsDir() {
231228
return nil
232229
}
233230
if isExcluded(path.Base(walkingPath), excluded) {
231+
if showVerbose {
232+
fmt.Printf("Excluding %q\n", walkingPath)
233+
}
234234
return nil
235235
}
236+
if showVerbose {
237+
fmt.Printf("Processing %q\n", walkingPath)
238+
}
236239

237240
fPath := strings.TrimPrefix(walkingPath, assetDir)
238241
fExt := path.Ext(fPath)

0 commit comments

Comments
 (0)