src

Go monorepo.
git clone git://code.dwrz.net/src
Log | Files | Refs

note.go (627B)


      1 package help
      2 
      3 import "strings"
      4 
      5 const note = `The note command is used to set a note on an entry.
      6 
      7 There are four subcommands available:
      8 
      9 append — used to add text to a note.
     10 
     11 delete — used to delete a note.
     12 
     13 edit — used to edit a note with a text editor (specified by the EDITOR
     14 environment variable).
     15 
     16 set — used to set (or overwrite) a note.
     17 
     18 If not subcommand is specified, the entry's note is displayed.
     19 
     20 Examples:
     21 dqs note append Hello World
     22 dqs -date 20111111 note delete
     23 dqs note edit
     24 dqs note set This is a note.
     25 `
     26 
     27 func Note() string {
     28 	var str strings.Builder
     29 
     30 	str.WriteString(note)
     31 
     32 	return str.String()
     33 }