dotfiles

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package dotfiles wraps around deploying dotfiles

Index

Constants

View Source
const (
	// CompletionsMode indicates to generate completions
	CompletionsMode = "completions"
	// DeployMode indicates file deployment
	DeployMode = "deploy"
	// DiffMode indicates showing a diff
	DiffMode = "diff"
	// ListMode will list the effective files
	ListMode = "ls-files"
	// DryRunArg is the argumnent to outline changes (not make them)
	DryRunArg = "dry-run"
	// ForceArg will force write all files
	ForceArg = "force"
	// VerboseArg will enable verbose diffing
	VerboseArg = "verbose"
	// OverwriteArg will overwrite differing files
	OverwriteArg = "overwrite"
)

Variables

This section is empty.

Functions

func Do

func Do(s Settings) error

Do will execute dotfiles activities

Types

type Settings

type Settings struct {
	Mode      string
	Overwrite bool
	Force     bool
	DryRun    bool
	Verbose   bool
	Writer    io.Writer
}

Settings are dotfiles arguments/input settngs

Jump to

Keyboard shortcuts

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