wizard

package
v0.0.0-...-b0fc717 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CMD_NEXT    = "/w-next"
	CMD_RESTART = "/w-restart"
	CMD_DONE    = "/w-done"
	CMD_TAGS    = "/w-tag"
	CMD_PREFIX  = "/w-"

	CMD_TAGS_SPACE = CMD_TAGS + " "
)

Variables

This section is empty.

Functions

func TagWizardMarkupHelper

func TagWizardMarkupHelper(tag string) (bool, bool, bool, string)

Types

type TagWizard

type TagWizard struct {
	// contains filtered or unexported fields
}

func (*TagWizard) ButtonPressed

func (this *TagWizard) ButtonPressed(cmd *string)

func (*TagWizard) Buttons

func (this *TagWizard) Buttons() data.TInlineKeyboard

func (*TagWizard) ClearTag

func (this *TagWizard) ClearTag(tag string)

func (*TagWizard) Current

func (this *TagWizard) Current() *WizardRule

func (*TagWizard) DoOver

func (this *TagWizard) DoOver()

func (*TagWizard) Len

func (this *TagWizard) Len() int

func (*TagWizard) MarshalJSON

func (this *TagWizard) MarshalJSON() ([]byte, error)

func (*TagWizard) MergeTags

func (this *TagWizard) MergeTags(tags []string)

func (*TagWizard) MergeTagsFromString

func (this *TagWizard) MergeTagsFromString(tagstr string)

func (*TagWizard) Next

func (this *TagWizard) Next() bool

func (TagWizard) Prompt

func (this TagWizard) Prompt() string

func (*TagWizard) Rating

func (this *TagWizard) Rating() types.PostRating

func (*TagWizard) Reset

func (this *TagWizard) Reset()

func (*TagWizard) Rule

func (this *TagWizard) Rule(id int) *WizardRule

func (*TagWizard) SetNewRulesFromString

func (this *TagWizard) SetNewRulesFromString(rulestring string)

func (*TagWizard) SetTag

func (this *TagWizard) SetTag(tag string)

func (*TagWizard) TagByUID

func (this *TagWizard) TagByUID(sid string) string

func (*TagWizard) TagUIDs

func (this *TagWizard) TagUIDs(r *WizardRule)

func (*TagWizard) Tags

func (this *TagWizard) Tags() tags.TagSet

func (*TagWizard) ToggleTags

func (this *TagWizard) ToggleTags(tags []string)

func (*TagWizard) ToggleTagsFromString

func (this *TagWizard) ToggleTagsFromString(tagstr string)

func (*TagWizard) UID

func (this *TagWizard) UID(tag string) string

func (*TagWizard) UnmarshalJSON

func (this *TagWizard) UnmarshalJSON(data []byte) error

type WizardRule

type WizardRule struct {
	// contains filtered or unexported fields
}

func NewWizardRuleFromString

func NewWizardRuleFromString(line string) *WizardRule

func (*WizardRule) Applicable

func (this *WizardRule) Applicable(tags *tags.TagSet, visitval int) bool

func (*WizardRule) Buttons

func (this *WizardRule) Buttons(t *tags.TagSet, w *TagWizard) []data.TInlineKeyboardButton

func (*WizardRule) DoImplicit

func (this *WizardRule) DoImplicit(tags *tags.TagSet)

func (*WizardRule) Len

func (this *WizardRule) Len() int

func (*WizardRule) Less

func (this *WizardRule) Less(i, j int) bool

func (*WizardRule) ParseFromString

func (this *WizardRule) ParseFromString(line string) error

func (*WizardRule) PrereqsSatisfied

func (this *WizardRule) PrereqsSatisfied(tags *tags.TagSet) bool

func (*WizardRule) Prompt

func (this *WizardRule) Prompt() string

func (*WizardRule) Swap

func (this *WizardRule) Swap(i, j int)

type WizardRuleset

type WizardRuleset struct {
	// contains filtered or unexported fields
}

func (*WizardRuleset) AddRule

func (this *WizardRuleset) AddRule(r *WizardRule)

func (*WizardRuleset) Clear

func (this *WizardRuleset) Clear()

func (*WizardRuleset) Foreach

func (this *WizardRuleset) Foreach(f func(*WizardRule) bool)

func (*WizardRuleset) Reset

func (this *WizardRuleset) Reset()

func (*WizardRuleset) Rule

func (this *WizardRuleset) Rule(id int) *WizardRule

func (*WizardRuleset) Visit

func (this *WizardRuleset) Visit(id int)

Jump to

Keyboard shortcuts

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