src

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

delete.go (460B)


      1 package help
      2 
      3 import "strings"
      4 
      5 const deleteEntry = `The delete command deletes an entry.
      6 
      7 The entry date is specified via the -date flag (run dqs -help to read
      8 more about the flag).
      9 
     10 There are no arguments.
     11 
     12 There is no way to undo a deletion.
     13 
     14 The command returns an error if no entry exists for the specified date.
     15 
     16 Example:
     17 dqs -date 20210620 delete
     18 `
     19 
     20 func Delete() string {
     21 	var str strings.Builder
     22 
     23 	str.WriteString(deleteEntry)
     24 
     25 	return str.String()
     26 }