update

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: 10 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 update 提供 pixiv update 命令和自动更新检查。

包的组成:New 组装命令,RunAutomaticCheck 在命令结束后检查更新;下载、校验和替换 由 github.com/FlanChanXwO/pixiv-cli/internal/selfupdate 实现。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(env environment.Env, loadRuntime func() (config.Config, error)) *cobra.Command

New 构造 update 命令;loadRuntime 提供配置中的默认代理。

func NewAutomaticChecker

func NewAutomaticChecker(proxy string) (*selfupdate.AutomaticUpdateChecker, error)

NewAutomaticChecker 构造生产用 update.AutomaticUpdateChecker。

func NewCoordinator

func NewCoordinator(proxy string, out, errOut io.Writer) (*selfupdate.UpdateCoordinator, error)

NewCoordinator 构造生产用 update.UpdateCoordinator。

func RunAutomaticCheck

func RunAutomaticCheck(cmd *cobra.Command, errOut io.Writer, language i18n.Locale, loadRuntime func() (config.Config, error))

RunAutomaticCheck 在业务命令成功后展示稳定版更新提示。所有错误只写 stderr,不改变已成功命令的退出码,也不进入 stdout/MCP JSON-RPC。

Types

This section is empty.

Jump to

Keyboard shortcuts

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