input

package
v1.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Special tokens
	Illegal token = iota
	EOF
	Ws // whitespace

	// Literals
	Ident

	// Misc characters
	Comma // ,

	// Keywords
	CommandReview // r
	CommandReject // r-

	Equal    // =
	Question // ?
	Atmark   // @
	Plus     // +
	Minus    // -
)

Variables

This section is empty.

Functions

func ParseCommand

func ParseCommand(raw string) (ok bool, cmd interface{})

ParseCommand is doing adhoc command parsing. for the future, we should write an actual parser.

Types

type AcceptChangeByOthersCommand

type AcceptChangeByOthersCommand struct {
	Reviewer []string
	// contains filtered or unexported fields
}

func (*AcceptChangeByOthersCommand) BotName

func (s *AcceptChangeByOthersCommand) BotName() string

type AcceptChangeByReviewerCommand

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

func (*AcceptChangeByReviewerCommand) BotName

type AcceptChangeOnReview added in v1.1.0

type AcceptChangeOnReview struct {
	BotNameForReview string
}

func (*AcceptChangeOnReview) BotName added in v1.1.0

func (s *AcceptChangeOnReview) BotName() string

type AcceptChangesetCommand

type AcceptChangesetCommand interface {
	BotName() string
}

type AssignReviewerCommand

type AssignReviewerCommand struct {
	Reviewer []string
}

type CancelApprovedByReviewerCommand

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

func (*CancelApprovedByReviewerCommand) BotName

Jump to

Keyboard shortcuts

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