fanbox

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package fanbox 提供 `pixiv fanbox` 命令组、组的持久 --proxy flag 与子命令共用的客户端租约包装。

子命令同时导入 sdk/fanbox,导入本包时使用 fanboxcli 别名。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(env environment.Env, children []*cobra.Command) *cobra.Command

NewCommand 组装 FANBOX 产品组,只固定组的帮助文本、持久 flag 和子命令顺序。

func Open

func Open(ctx context.Context, open func() (*session.Fanbox, error), cmd *cobra.Command) (*lifecycle.Lease[*fanbox.Client], error)

Open 为当前命令打开一个 FANBOX 客户端租约;session 延迟解析,构造命令树时不打开账号库。

func ProxyOverride

func ProxyOverride(cmd *cobra.Command) (*string, error)

ProxyOverride 读取组的持久 --proxy/--no-proxy;两者都给时报错,nil 表示沿用配置。

func UseClient

func UseClient(cmd *cobra.Command, open func() (*session.Fanbox, error), use func(*fanbox.Client) error) error

UseClient 让租约只覆盖一次命令回调;回调和关闭的错误都会保留并合并返回。

Types

This section is empty.

Directories

Path Synopsis
Package auth 提供 pixiv fanbox auth 命令组:FANBOX session 的导入、列表、选择、移除与状态检查。
Package auth 提供 pixiv fanbox auth 命令组:FANBOX session 的导入、列表、选择、移除与状态检查。
Package browse 提供 FANBOX 内容浏览命令:创作者、帖子、标签、home 与 supporting。
Package browse 提供 FANBOX 内容浏览命令:创作者、帖子、标签、home 与 supporting。
Package download 提供 pixiv fanbox download 命令,把 FANBOX 帖子资源保存到本地。
Package download 提供 pixiv fanbox download 命令,把 FANBOX 帖子资源保存到本地。

Jump to

Keyboard shortcuts

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