toolformation

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: MIT Imports: 12 Imported by: 0

README

ToolFormation

ToolFormation は自分のPCにインストールするツール類をコードで定義することで管理することができます

package-manager: homebrew
homebrew:
    formula:
        - node
        - r
        - pyenv
    cask:
        - visual-studio-code
        - rstudio
        - iterm2

visual-studio-code:
    extension:
        - golang.Go
        - ms-python.python
        - ms-python.vscode-pylance

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitToolFormation

func InitToolFormation()

TODO: implement InitToolFormation create a new ToolFormation config file

func RunCommand

func RunCommand(cmd string) error

RunCommand runs a shell command

Types

type Homebrew

type Homebrew struct {
	Formula []string `yaml:"formula"`
	Cask    []string `yaml:"cask"`
}

Homebrew

func (*Homebrew) Install

func (h *Homebrew) Install()

Install homwbrew

func (*Homebrew) Uninstall

func (h *Homebrew) Uninstall()

Uninstall homwbrew

type ToolFormation

type ToolFormation struct {
	PackageManager string `yaml:"package-manager"`
	Homebrew       `yaml:"homebrew"`
}

ToolFormation

func New

func New(path string) (*ToolFormation, error)

func (*ToolFormation) Install

func (t *ToolFormation) Install()

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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