todo

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 1, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package todo contains a todo type that represents a todo sent to Omnifocus.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Todo

type Todo struct {
	Name       string
	Note       string
	Attachment string
}

Todo represents a todo that will be sent into Omnifocus.

func (*Todo) Send

func (todo *Todo) Send() error

Send uses the fields of your todo to send off an email to the specified email address. The email is sent using the gmail username and password from your configuration file.

The email is sent in the following way:

  • The name of the todo is used as the subject line
  • The note of the todo is used as the email body
  • The attachment of the todo is, well, used as an attachment on the email.
  • The email will be from "omnifocus-cli@localhost.com".

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL