mirror of
https://github.com/dnote/dnote
synced 2026-03-18 08:19:55 +01:00
Keep cli output consitent by using same output format in add and edit commands (#123)
This commit is contained in:
parent
e7940229cf
commit
0f13829209
1 changed files with 4 additions and 1 deletions
|
|
@ -2,6 +2,7 @@ package edit
|
|||
|
||||
import (
|
||||
"database/sql"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"time"
|
||||
|
||||
|
|
@ -106,8 +107,10 @@ func newRun(ctx infra.DnoteCtx) core.RunEFunc {
|
|||
|
||||
tx.Commit()
|
||||
|
||||
log.Printf("new content: %s\n", newContent)
|
||||
log.Success("edited the note\n")
|
||||
fmt.Printf("\n------------------------content------------------------\n")
|
||||
fmt.Printf("%s", newContent)
|
||||
fmt.Printf("\n-------------------------------------------------------\n")
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue