remove dirlist. It wasn't being used anyway. add verbose logging to build command
This commit is contained in:
parent
cd2617b976
commit
2209027abd
@ -23,4 +23,4 @@ pipelines:
|
|||||||
- mkdir ./build
|
- mkdir ./build
|
||||||
- go version
|
- go version
|
||||||
- go mod tidy
|
- go mod tidy
|
||||||
- go build -a -v -n -o ./build/ .
|
- go build -a -v -o ./build/ .
|
||||||
|
21
dirlist.go
21
dirlist.go
@ -1,21 +0,0 @@
|
|||||||
package main
|
|
||||||
|
|
||||||
import (
|
|
||||||
"fmt"
|
|
||||||
"os"
|
|
||||||
)
|
|
||||||
|
|
||||||
func dirlist() []string {
|
|
||||||
var output []string
|
|
||||||
wd, _ := os.Getwd()
|
|
||||||
dirlist, _ := os.ReadDir(wd)
|
|
||||||
for _, item := range dirlist {
|
|
||||||
if os.DirEntry.IsDir(item) {
|
|
||||||
output = append(output, fmt.Sprintf(wd + "/" + os.DirEntry.Name(item) + "/"))
|
|
||||||
} else {
|
|
||||||
output = append(output, fmt.Sprintf(wd + "/" + os.DirEntry.Name(item)))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return output
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user