feat: improve output
This commit is contained in:
parent
cfa8c7e9f9
commit
051e257fba
6
main.go
6
main.go
@ -101,10 +101,10 @@ func main() {
|
|||||||
fmt.Println()
|
fmt.Println()
|
||||||
fmt.Println("Press 'ctrl+c' to cancel")
|
fmt.Println("Press 'ctrl+c' to cancel")
|
||||||
time.Sleep(time.Second)
|
time.Sleep(time.Second)
|
||||||
fmt.Println()
|
|
||||||
fmt.Println()
|
|
||||||
|
|
||||||
for _, dsConsumedir := range cfg.ImportDirectories {
|
for _, dsConsumedir := range cfg.ImportDirectories {
|
||||||
|
fmt.Println()
|
||||||
|
fmt.Println()
|
||||||
fmt.Printf("Scanning folder '%s'\n", dsConsumedir)
|
fmt.Printf("Scanning folder '%s'\n", dsConsumedir)
|
||||||
fmt.Println()
|
fmt.Println()
|
||||||
fmt.Println()
|
fmt.Println()
|
||||||
@ -192,7 +192,7 @@ func handleExistingFile(cfg config, fileExistsResponse FileExistsResult) error {
|
|||||||
|
|
||||||
var itemDetails DocspellItemDetails
|
var itemDetails DocspellItemDetails
|
||||||
if err := json.Unmarshal(output, &itemDetails); err != nil {
|
if err := json.Unmarshal(output, &itemDetails); err != nil {
|
||||||
return fmt.Errorf("pars item details: %w", err)
|
return fmt.Errorf("parse item details: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
folder := "null"
|
folder := "null"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user