cli

package
v0.0.0-...-9131046 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoopCLI

func LoopCLI(ctx context.Context, client *ent.Client)
func MainMenu(ctx context.Context, client *ent.Client, options []Option)

func PromptMovieUpdate

func PromptMovieUpdate(ctx context.Context, client *ent.Client, f *ent.File) error

Types

type FileAction

type FileAction func(ctx context.Context, client *ent.Client, f *ent.File) error

type FileOption

type FileOption struct {
	Name   string
	Active bool
	Icon   string
	Action FileOptionAction
}

type FileOptionAction

type FileOptionAction func(ctx context.Context, client *ent.Client, action FileAction) error

type Option

type Option struct {
	Name   string
	Action OptionAction
	Active bool
	Icon   string
}

type OptionAction

type OptionAction func(ctx context.Context, client *ent.Client) error

Jump to

Keyboard shortcuts

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