commands

package
v0.0.0-...-6b1ef89 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArgDotFiles

func ArgDotFiles(c *cli.Context) []*dotfile.DotFile

ArgDotFiles returns a collection of DotFile objects constructed according to provided command line arguments.

func Delete

func Delete(c *cli.Context) error

Delete removes both stored file and it's symlink, works for properly linked files only.

func EnsureArgsPresent

func EnsureArgsPresent(c *cli.Context)

EnsureArgsPresent fails loudly if no command line arguments provided.

func Link(c *cli.Context) error

Link links all stored dotfiles to their respective locations in home directory.

func List

func List(c *cli.Context) error

List displays a list of stored dotfiles and their states.

func Logger

func Logger(c *cli.Context, df *dotfile.DotFile) *logger.Logger

Logger returns a Logger object for given dotfile.

func Repo

func Repo(c *cli.Context) *repo.Repo

Repo returns a repo.Repo object based on command line arguments.

func Restore

func Restore(c *cli.Context) error

Restore moves dotfiles from store back to its original location, makes sense only for linked files.

func Store

func Store(c *cli.Context) error

Store stores and links back given files.

Types

This section is empty.

Jump to

Keyboard shortcuts

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