user

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 11 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 user 提供 pixiv user 命令组:用户搜索、详情、作品、收藏、关注关系与屏蔽列表。

包的组成:New 组装命令组,RunSearch 共享用户搜索;列表输出在 lists.go。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(env environment.Env, executeSDK environment.PixivExecutor, follow func() *cobra.Command) *cobra.Command

New 构造 `pixiv user` 命令组。follow 命令由组合根注入,本包不直接依赖同级的 follow 包。

func RunSearch

func RunSearch(cmd *cobra.Command, env environment.Env, executeSDK environment.PixivExecutor, args []string, opts SearchOptions) error

RunSearch 按 SearchOptions 执行用户搜索;兼容入口调用它避免复制搜索逻辑。

Types

type SearchOptions

type SearchOptions struct {
	environment.Options
	NDJSON bool
	Limit  int
	Page   int
}

SearchOptions 携带兼容入口已解析的用户搜索 flag,让 `pixiv search --type user` 复用这里的执行逻辑。

Jump to

Keyboard shortcuts

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