todo

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package todo is an example of stateful command that let users input required arguments step by step in a conversational manner.

On each valid input, given argument is stashed to *args. *args is passed around until all required arguments are filled.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCommand

func BuildCommand(storage *DummyStorage) sarah.Command

BuildCommand builds todo command with given storage.

Types

type DummyStorage

type DummyStorage struct {
}

DummyStorage is an empty struct that represents a permanent storage.

func (*DummyStorage) Save

func (s *DummyStorage) Save(senderKey string, description string, due time.Time)

Save saves given todo settings to permanent storage.

Jump to

Keyboard shortcuts

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