flake

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrPackageConflict = errors.New("package exists in fleek and nix profile")

Functions

func CloneRepository added in v0.9.0

func CloneRepository(repo string) (string, error)

func ForceProfile added in v0.9.4

func ForceProfile() error

Types

type Data

type Data struct {
	Config   *fleek.Config
	UserName string
	Home     string
	Bling    *fleek.Bling
}

type Flake

type Flake struct {
	Templates map[string]*template.Template
	Config    *fleek.Config
	// contains filtered or unexported fields
}

func Load

func Load(cfg *fleek.Config, app *app.App) (*Flake, error)

func (*Flake) Apply

func (f *Flake) Apply() error

func (*Flake) Check

func (f *Flake) Check() error

func (*Flake) Clone added in v0.7.1

func (f *Flake) Clone(repo string) error

func (*Flake) Create

func (f *Flake) Create(force bool, symlink bool) error

func (*Flake) IsGitRepo

func (f *Flake) IsGitRepo() (bool, error)

func (*Flake) IsJoin

func (f *Flake) IsJoin() (bool, error)

func (*Flake) Join

func (f *Flake) Join() error

func (*Flake) MayPull

func (f *Flake) MayPull() error

func (*Flake) ReadConfig

func (f *Flake) ReadConfig(loc string) error

func (*Flake) Update

func (f *Flake) Update() error

func (*Flake) Write

func (f *Flake) Write(message string, writeHost, writeUser bool) error

Write writes the applied flake configuration

type SystemData added in v0.9.0

type SystemData struct {
	System fleek.System
	User   fleek.User
	BYOGit bool
}

Jump to

Keyboard shortcuts

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