Documentation
¶
Overview ¶
Package cli is the Cobra command tree for the javdb binary.
Index ¶
- func EmitJSON(w io.Writer, v any) error
- func FilterHasMagnets(movies []map[string]any) []map[string]any
- func FmtSize(size any) string
- func PrintDetail(w io.Writer, movie map[string]any)
- func PrintLists(w io.Writer, errW io.Writer, items []map[string]any)
- func PrintMovieComments(w io.Writer, errW io.Writer, reviews []map[string]any)
- func PrintMovieMagnets(w io.Writer, errW io.Writer, items []map[string]any)
- func PrintMovies(w io.Writer, errW io.Writer, movies []map[string]any)
- func PrintNamed(w io.Writer, errW io.Writer, items []map[string]any)
- func PrintNamedNoCount(w io.Writer, errW io.Writer, items []map[string]any)
- func PrintRankedMovies(w io.Writer, errW io.Writer, movies []map[string]any)
- func PromptPassword(out io.Writer) (string, error)
- func PromptUsername(in io.Reader, out io.Writer) (string, error)
- func Run(args []string, stdin io.Reader, stdout, stderr io.Writer) int
- func SearchTypeKey(type_ string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterHasMagnets ¶
FilterHasMagnets drops rows with magnets_count == 0; keeps missing field.
func PrintDetail ¶
PrintDetail writes graph-oriented detail lines (Python parity).
func PrintLists ¶
PrintLists writes id\tname\tmovies\tprivacy\tviews.
func PrintMovieComments ¶ added in v0.4.0
PrintMovieComments 以可读的逐条形式输出评论;JSON 模式保留上游所有字段。
func PrintMovieMagnets ¶
PrintMovieMagnets prints magnet rows (name/size/flags/hash). Basic form for detail --magnets.
func PrintMovies ¶
PrintMovies writes number\tid\ttitle[\tdate] lines.
func PrintNamed ¶
PrintNamed writes id\tname[\tcount] for codes/series/actors/….
func PrintNamedNoCount ¶
PrintNamedNoCount prints id\tname only.
func PrintRankedMovies ¶
PrintRankedMovies prefixes each row with #ranking.
func PromptPassword ¶
PromptPassword reads a password without echo when stdin is a TTY.
func PromptUsername ¶
PromptUsername reads a non-empty username from in (or interactive stdin).
func SearchTypeKey ¶
SearchTypeKey maps --type to response list key.
Types ¶
This section is empty.