Documentation
¶
Index ¶
- type Deno
- func (d *Deno) GetDefaultVersion(ctx context.Context) *core.InstalledVersion
- func (d *Deno) Install(ctx context.Context, version *core.RemoteVersion) error
- func (d *Deno) ListInstalledVersions(ctx context.Context) ([]*core.InstalledVersion, error)
- func (d *Deno) ListRemoteVersions(ctx context.Context) ([]*core.RemoteVersion, error)
- func (d *Deno) Name() string
- func (d *Deno) SetDefaultVersion(ctx context.Context, version string) error
- func (d *Deno) Uninstall(ctx context.Context, version string) error
- type GitHubRelease
- type GitRefTag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deno ¶
type Deno struct{}
Deno 语言实现,满足 core.Language 接口。
func (*Deno) GetDefaultVersion ¶
func (d *Deno) GetDefaultVersion(ctx context.Context) *core.InstalledVersion
GetDefaultVersion 获取当前生效版本。
func (*Deno) Install ¶
Install 安装指定远程版本。
func (*Deno) ListInstalledVersions ¶
ListInstalledVersions 列出已安装版本。
func (*Deno) ListRemoteVersions ¶
ListRemoteVersions 获取远程 Deno 版本列表,使用 GitHub Releases,避免只拿到最新版本。
func (*Deno) SetDefaultVersion ¶
SetDefaultVersion 设置当前版本并写入环境变量。
Source Files
¶
- client.go
- deno.go
Click to show internal directories.
Click to hide internal directories.