Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommitSites ¶
func CommitSites(opts *CommitSitesOptions) error
func GetWorktree ¶
func GetWorktree() (*git.Worktree, error)
Types ¶
type CommitSitesOptions ¶
type CommitSitesOptions struct { // A site of site Ids for which to commit changes. If not supplied, // then all sites with changes will be committeed Ids map[int]bool // A short message snippet which will be embedded in the commit message // (e.g. "Update admins") Message string // The name of the command that is being run (e.g. "sync") Cmd string // If set perform dry run only DryRun bool // If set force the tree to be updated when dry run is also set ForceUpdateTree bool // If set commit but don't push to origin NoPush bool }
type Site ¶
type Site struct { Id int FullName string `yaml:"full-name"` Email string DisplayEmail string `yaml:"display-email,omitempty"` Admins []string ImmortalAdmins []string `yaml:"immortal-admins,omitempty"` Expiry string Paths []string Domains []interface{} `yaml:"domains,omitempty"` Disabled bool `yaml:"disabled,omitempty"` DisabledReason string `yaml:"disabled_reason,omitempty"` Php interface{} `yaml:"php,omitempty"` Passenger bool `yaml:"passenger,omitempty"` Subpaths bool `yaml:"subpaths,omitempty"` // contains filtered or unexported fields }
func GetAllSites ¶
func GetSiteById ¶
func GetSiteByName ¶
func (*Site) FileNameRepo ¶
func (*Site) MarkAsChanged ¶
func (s *Site) MarkAsChanged()
func (*Site) RemoveAdmin ¶
Click to show internal directories.
Click to hide internal directories.