ui

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AnimeSearchFields []string = []string{
	"num_episodes", "alternative_titles",
	"start_date", "end_date", "mean",
	"start_season", "rank",
	"media_type", "status",
	"average_episode_duration",
	"rating", "studios", "genres",
}
View Source
var MangaSearchFields []string = []string{
	"num_chapters", "num_volumes",
	"alternative_titles", "start_date",
	"end_date", "mean", "rank", "genres",
	"media_type", "status", "authors",
}
View Source
var PromptLength int

Functions

func AnimeActionMenu

func AnimeActionMenu(animeIsAdded bool) func(mg.Anime)

func AnimeList

func AnimeList(animes []mg.Anime)

func AnimeScoreInput

func AnimeScoreInput(anime mg.Anime)

func AnimeSearch

func AnimeSearch(label, searchString string) mg.Anime

only search animes probably only now

func AnimeStatusMenu

func AnimeStatusMenu(anime mg.Anime)

func ChapterInput

func ChapterInput(manga mg.Manga)

func CreateChapterUpdateConfirmationMessage

func CreateChapterUpdateConfirmationMessage(title string, chNum, prevChNum int) string

func CreateEpisodeUpdateConfirmationMessage

func CreateEpisodeUpdateConfirmationMessage(title string, epNum, prevEpNum int) string

very short name I know

func CreateScoreUpdateConfirmationMessage

func CreateScoreUpdateConfirmationMessage(title string, score, prevScore int) string

very short name I know

func CreateStatusUpdateConfirmationMessage

func CreateStatusUpdateConfirmationMessage(title, status, prevStatus string) string

very short name I know

func CreateVolumeUpdateConfirmationMessage

func CreateVolumeUpdateConfirmationMessage(title string, volNum, prevVolNum int) string

func EpisodeInput

func EpisodeInput(anime mg.Anime)

func FormatScore

func FormatScore(score int) string

func FormatStatus

func FormatStatus(status string) string

func GetColorCodeByScore

func GetColorCodeByScore(score int) string

to print dropped in red color, etc

func GetColorCodeByStatus

func GetColorCodeByStatus(status string) string

to print dropped in red color, etc

func MangaActionMenu

func MangaActionMenu(mangaIsAdded bool) func(mg.Manga)

func MangaList

func MangaList(mangas []mg.Manga)

func MangaScoreInput

func MangaScoreInput(manga mg.Manga)

func MangaSearch

func MangaSearch(label, searchString string) mg.Manga

func MangaStatusMenu

func MangaStatusMenu(manga mg.Manga)

func TextInput

func TextInput(label, errMessage string) string

func VolumeInput

func VolumeInput(manga mg.Manga)

Types

type AnimeAction

type AnimeAction struct {
	Label       string
	Description string
	Method      func(mg.Anime)
}

type MangaAction

type MangaAction struct {
	Label       string
	Description string
	Method      func(mg.Manga)
}

type StatusOption

type StatusOption struct {
	Label  string
	Status string
}

Jump to

Keyboard shortcuts

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