shakefu / home

Things that belong in my usual setup
MIT License
4 stars 2 forks source link

Home

This repository contains configuration files that I don't want to have to lose so I'm putting them under version control.

Installing

The easiest install is to download the release for your operating system and architecture and run it.

export VERSION=1.2.0
curl -fsSL https://github.com/shakefu/home/releases/download/v${VERSION}/home-v${VERSION}-darwin-amd64.tar.gz | tar xz > home
./home setup

Alternatively, you can clone this repository, and then run the home.go command to install everything.

git clone https://github.com/shakefu/home.git
cd home
go run home.go setup

Breadcrumbs

home

import "home"

Index

func CliCopyFiles

func CliCopyFiles(args *CliArgs)

func CliInstall

func CliInstall(args *CliArgs, names ...string)

CliInstall runs all the embedded install scripts or exit. This will run all the install scripts, or a specified list of script names. If there is an error with any script it will exit this process.

func CliStatus

func CliStatus(args *CliArgs, names ...string)

func Run

func Run(command string) int

Run invokes a subprocess command from a string using shell splitting.

func RunCommand

func RunCommand(argv []string) int

RunCommand a subprocess command from a tokenized array of string arguments.

func Targets

func Targets(args *CliArgs, names *[]string) (map[string]bool, []string)

Targets returns a map and a deduplicated slice of all the names given.

type CliArgs

type CliArgs struct {
    // Options
    DryRun  bool
    Upgrade bool
    Debug   bool
    Color   string
    // Args
    Command string
    Os      string
    Arch    string
    Names   []string
}

type Script

type Script struct {
    // contains filtered or unexported fields
}

func (*Script) Run

func (script *Script) Run(args ...string) (int, error)

func (*Script) RunOrExit

func (script *Script) RunOrExit(args ...string) int

Generated by gomarkdoc