config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDirIfNotExist

func CreateDirIfNotExist(dir string) error
func CreateSymlink(src string, dst string) error

シンボリックリンクを作成する

func GetCheekyHome

func GetCheekyHome() string

func GetGitConfig

func GetGitConfig(config GitConfig) (string, error)

func GetKeysDir

func GetKeysDir() string

func GetSSHDir

func GetSSHDir() string

func IsDir

func IsDir(dir string) bool

func IsFile

func IsFile(file string) bool

func IsGitInstalled

func IsGitInstalled() bool

Gitがインストールされているかどうかを確認する

func MakeDir

func MakeDir()

func RemoveFile

func RemoveFile(file string) error

fileを削除する

func SetGitConfig

func SetGitConfig(config GitConfig) error

func SetGitEmail

func SetGitEmail(email string) error

func SetGitUser

func SetGitUser(name string) error

Types

type GitConfig

type GitConfig struct {
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

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