digest

package module
v0.0.0-...-3583f36 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2019 License: MIT Imports: 0 Imported by: 0

README

Digest

Your changes to your google docs notes in your mailbox.

Installation

go get -v github.com/farnasirim/digest/cmd/digest
go install github.com/farnasirim/digest/cmd/digest

Usage

Have a look at

digest --help

First time usage: Unfortunately setting up the google docs access token takes a few clicks and keystrokes. See my blog post for full instructions.

mkdir -p ~/.digest/auth/
cp $PATH_TO_GOOGLE_DRIVE_CREDENTIALS ~/.digest/auth/
 digest --folder=$GOOGLE_DRIVE_FOLDER_NAME \
--smtp-user=you@domain.com \
--smtp-pass=yourpass \
--smtp-server-host=smtp.domain.com \
--persist-confs

Subsequent usages:

digest

Sample output:

Looking under folder "subjects" with id "folder-id"
Successfully written "Theoretical Computer Science" "doc-id"
Successfully written "Networks" "doc-id"
Successfully written "Scientific Papers" "doc-id"
Email sent successfully

Sample email content:
email normal

Or when you haven't had any changes
email empty

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiffService

type DiffService interface {
	DiffDirsHtml(string, string) string
}

type DocsService

type DocsService interface {
	TakeAndPersistSnapshopt(string) error
}

type SMTPService

type SMTPService interface {
	SendMail(to string, msg []byte) error
	SendMailHtml(to, subject string, msg []byte) error
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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