app

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateUnits

func ValidateUnits(units []PushUnit) ([]string, []string)

Types

type Config

type Config struct {
	Units []PushUnit `yaml:"units"`
}

type Context

type Context struct {
	ConfigFilePath string
	WorkspacePath  string
	Verbose        bool
}

func BuildContext

func BuildContext(c *cli.Context) (Context, error)

type PushUnit

type PushUnit struct {
	Id             string `yaml:"id"`
	Repository     string `yaml:"repository"`
	RepositoryPath string
	Files          []string `yaml:"files"`
	Exclude        []string `yaml:"exclude"`
	CommitMessage  string   `yaml:"commit_message"`
	AuthorName     string   `yaml:"author_name"`
	AuthorEmail    string   `yaml:"author_email"`
	SshKey         string   `yaml:"ssh_key"`
}

Jump to

Keyboard shortcuts

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