util

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddExecutePermission

func AddExecutePermission(filePath string) error

func CreateConfigFileForDevcontainerVim added in v0.5.0

func CreateConfigFileForDevcontainerVim(appConfigDir string, workspaceFolder string, configFilePath string, additionalConfigFilePath string) (string, error)

configFilePath と additionalConfigFilePath の JSON をマージし、 devcontainer.vim のキャッシュディレクトリ内の設定ファイル格納ディレクトリへ格納する。 作成した devcontainer.json を格納しているディレクトリのパスを返却する。

func CreateDirectory

func CreateDirectory(pathFunc GetDirFunc, dirName string) (string, string, string)

devcontainer.vim が使用するキャッシュディレクトリを作成し、返却する。

返却値: devcontainer.vim 用のキャッシュディレクトリ devcontainer.vim 用の実行バイナリ格納ディレクトリ devcontainer.vim のマージ済み設定ファイル格納ディレクトリ

func GetConfigDir added in v0.5.0

func GetConfigDir(appConfigDir string, workspaceFolder string) string

devcontainer.vim 用の devcontainer.json 格納先ディレクトリを計算して返却する。 `<devcontainer.vim のキャッシュディレクトリ>/config/<workspaceFolder のパスを md5 播種化した文字列>` のディレクトリを返却

func IsExists

func IsExists(filePath string) bool

func IsExistsCommand

func IsExistsCommand(command string) bool

command で指定したものへパスが通っているかを確認する。 パスが通っている場合 true を返却し、通っていない場合 false を返却する。

Types

type GetDirFunc

type GetDirFunc func() (string, error)

Jump to

Keyboard shortcuts

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