cli

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 31 Imported by: 0

Documentation

Overview

Package cli assembles the Cobra root command and implements the CLI entrypoint.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v0.6.0

func New(stdin io.Reader, stdout, stderr io.Writer) *cobra.Command

New builds the root command with the original persistent flags and command order.

func Run

func Run(args []string, stdin io.Reader, stdout, stderr io.Writer) int

Run executes the command and preserves the original stderr/exit-code contract.

Types

This section is empty.

Directories

Path Synopsis
Package authstore 只负责默认认证文件的路径、目录与 store 打开。
Package authstore 只负责默认认证文件的路径、目录与 store 打开。
Package client 统一配置解析、SDK client 创建与 required/optional 认证生命周期。
Package client 统一配置解析、SDK client 创建与 required/optional 认证生命周期。
commands
actor
Package actor 提供演员作品列表命令。
Package actor 提供演员作品列表命令。
auth
Package auth 提供真实的 auth 命令组与交互式凭据输入。
Package auth 提供真实的 auth 命令组与交互式凭据输入。
browse
Package browse 提供按内容标签/年份/月份浏览影片命令。
Package browse 提供按内容标签/年份/月份浏览影片命令。
code
Package code 提供番号前缀作品列表命令。
Package code 提供番号前缀作品列表命令。
collections
Package collections 提供用户收藏列表命令。
Package collections 提供用户收藏列表命令。
comments
Package comments 提供影片评论单页命令。
Package comments 提供影片评论单页命令。
detail
Package detail 提供影片详情与可选磁力输出命令。
Package detail 提供影片详情与可选磁力输出命令。
director
Package director 提供导演作品列表命令。
Package director 提供导演作品列表命令。
download
Package download 提供影片媒体下载命令。
Package download 提供影片媒体下载命令。
list
Package list 提供合集(用户播放列表)作品列表命令。
Package list 提供合集(用户播放列表)作品列表命令。
lists
Package lists 提供我的合集与公开合集命令组。
Package lists 提供我的合集与公开合集命令组。
magnets
Package magnets 提供影片磁力列表与最佳磁力选择命令。
Package magnets 提供影片磁力列表与最佳磁力选择命令。
maker
Package maker 提供制作商/厂牌作品列表命令。
Package maker 提供制作商/厂牌作品列表命令。
mark
Package mark 提供影片标记命令。
Package mark 提供影片标记命令。
rankings
Package rankings 提供影片/演员/播放排行命令组。
Package rankings 提供影片/演员/播放排行命令组。
recent
Package recent 提供最近浏览影片列表命令。
Package recent 提供最近浏览影片列表命令。
search
Package search 提供影片/实体搜索命令。
Package search 提供影片/实体搜索命令。
series
Package series 提供系列作品列表命令。
Package series 提供系列作品列表命令。
tags
Package tags 提供内容标签 taxonomy 命令。
Package tags 提供内容标签 taxonomy 命令。
top250
Package top250 提供 TOP250 排行命令。
Package top250 提供 TOP250 排行命令。
unmark
Package unmark 提供影片取消标记命令。
Package unmark 提供影片取消标记命令。
want
Package want 提供想看影片列表命令。
Package want 提供想看影片列表命令。
watched
Package watched 提供已看影片列表命令。
Package watched 提供已看影片列表命令。
Package entity 只保留六类实体命令共享的查询用例。
Package entity 只保留六类实体命令共享的查询用例。
Package invocation 保存 CLI 根命令的调用期数据:persistent flags 目标与标准流。
Package invocation 保存 CLI 根命令的调用期数据:persistent flags 目标与标准流。
Package result 提供 CLI 纯结果投影与过滤,按领域分文件(movie.go、magnet.go、named.go)。
Package result 提供 CLI 纯结果投影与过滤,按领域分文件(movie.go、magnet.go、named.go)。

Jump to

Keyboard shortcuts

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