Documentation
¶
Overview ¶
Package user 提供 pixiv user 命令组:用户搜索、详情、作品、收藏、关注关系与屏蔽列表。
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` 复用这里的执行逻辑。