Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { Configuration *configuration.Configuration Debug bool Dryrun bool ShowDiffs bool Subcommand string Verbose bool Version string }
type Repository ¶
type Repository struct { CandidateFiles []*SyncCandidate FilesystemPath string RawRepository *git.Repository Ref string RefType string RequiresAuthentication bool ShowDiffs bool TemplatesDirectory string Url string }
func (*Repository) Checkout ¶
func (r *Repository) Checkout() error
func (*Repository) ExecuteCandidateSync ¶
func (r *Repository) ExecuteCandidateSync() error
func (*Repository) FindSyncCandidates ¶
func (r *Repository) FindSyncCandidates() error
func (*Repository) PrintCandidates ¶
func (r *Repository) PrintCandidates()
type SyncCandidate ¶
type SyncCandidate struct { Diff string Name string SourceContents []byte SourceFile string TargetContents []byte TargetFile string TargetMode fs.FileMode }
func (*SyncCandidate) GetWriteMode ¶
func (c *SyncCandidate) GetWriteMode(path string) error
func (*SyncCandidate) LoadContents ¶
func (c *SyncCandidate) LoadContents(file string) ([]byte, error)
func (*SyncCandidate) RequiresSync ¶
func (c *SyncCandidate) RequiresSync() (bool, error)
func (*SyncCandidate) Sync ¶
func (c *SyncCandidate) Sync() error
func (*SyncCandidate) TargetExists ¶
func (c *SyncCandidate) TargetExists() bool
Click to show internal directories.
Click to hide internal directories.