Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrAlreadyUpToDate 表示 plugin 版本已經最新 ErrAlreadyUpToDate = errors.New("already up-to-date") )
Functions ¶
This section is empty.
Types ¶
type InstallOption ¶
type InstallOption struct { DryRun bool // 模擬 install, 只會印出相關訊息, 但所有的 install 指令都不會執行 Force bool // 表示如果當前已經安裝過, 會強制移除重新安裝 Soft bool // soft means remove exist plugin only if version is different }
InstallOption 封裝了跟安裝有關的控制
Click to show internal directories.
Click to hide internal directories.