tools

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DEVCONTAINER_FILE_NAME = "devcontainer"
View Source
const DOWNLOAD_URL_DEVCONTAINERS_CLI_PATTERN = "https://github.com/mikoto2000/devcontainers-cli/releases/download/%s/devcontainer-linux-x64-%s"

devcontainer-cli のダウンロード URL ※ 全ての `%s` はリリースタグ名

View Source
const VIM_DOWNLOAD_URL_PATTERN = "https://github.com/vim/vim-appimage/releases/download/%s/Vim-%s.glibc2.29-x86_64.AppImage"

Vim のダウンロード URL ※ 全ての `%s` はリリースタグ名

Variables

This section is empty.

Functions

This section is empty.

Types

type Tool

type Tool struct {
	FileName             string
	CalculateDownloadUrl func() string
	// contains filtered or unexported fields
}

ツール情報

var DEVCONTAINER Tool = Tool{
	FileName: DEVCONTAINER_FILE_NAME,
	CalculateDownloadUrl: func() string {
		latestTagName, err := util.GetLatestReleaseFromGitHub("mikoto2000", "devcontainers-cli")
		if err != nil {
			panic(err)
		}

		return fmt.Sprintf(DOWNLOAD_URL_DEVCONTAINERS_CLI_PATTERN, latestTagName, latestTagName)
	},
	// contains filtered or unexported fields
}

devcontainer/cli のツール情報

var VIM Tool = Tool{
	FileName: "vim",
	CalculateDownloadUrl: func() string {
		latestTagName, err := util.GetLatestReleaseFromGitHub("vim", "vim-appimage")
		if err != nil {
			panic(err)
		}

		return fmt.Sprintf(VIM_DOWNLOAD_URL_PATTERN, latestTagName, latestTagName)
	},
	// contains filtered or unexported fields
}

Vim のツール情報

func (Tool) Install

func (t Tool) Install(installDir string, override bool) (string, error)

ツールのインストールを実行

Jump to

Keyboard shortcuts

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