cli

package
v0.0.0-...-3a317aa Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrLoginFailed used when login to Acroplia fails
	ErrLoginFailed = errors.New("login failed")

	// ErrLoginSpecify used when user doesn't supply any of credentials used by login
	ErrLoginSpecify = errors.New("you have to specify one of login methods, either by: phone, email, username or magic link")

	// ErrLoginPasswordRequired used when password is not supplied by user when performing login
	ErrLoginPasswordRequired = errors.New("password is required for login by email")
)
View Source
var (
	// ErrMessageFailed used when sending message to a user fails
	ErrMessageFailed = errors.New("sending message failed")

	// ErrMessageReceiver used when user didn't supply fullname and username
	ErrMessageReceiver = errors.New("fullname and username of receiver can't be empty")
)
View Source
var (
	// ErrTextpadFailed used when creating textpad in Acroplia fails
	ErrTextpadFailed = errors.New("creating textpad failed")
)

Functions

func Execute

func Execute() error

Execute executes root command

Types

type Config

type Config struct {
	Debug            bool
	PathToLogFile    string
	PathToOutputFile string

	Email    string
	Password string
	Username string
	Phone    string

	SeleniumPort    string
	SeleniumBrowser string
	SeleniumOptions []string

	TextpadTitle    string
	TextpadSubtitle string

	MessageUsername string
	MessageFullname string
	MessageText     string
	MessageChatUUID string
}

Config is a struct that stores all config info

Jump to

Keyboard shortcuts

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