exec

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package exec provides an updater that executes an external command to update the repository.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecUpdater

type ExecUpdater struct {
	Command string
	Path    string
	Args    []string
	Stdout  string
	Stderr  string
	Timeout time.Duration
}

ExecUpdater is an updater that executes an external command to update the repository.

func NewUpdater

func NewUpdater(params map[string]string) (*ExecUpdater, error)

NewUpdater builds a new exec updater from the given parameters

func (*ExecUpdater) Message

func (u *ExecUpdater) Message() (title, body string)

Message returns the default title and body that should be used in the commits / pull requests

func (*ExecUpdater) String

func (u *ExecUpdater) String() string

String returns a string representation of the updater

func (*ExecUpdater) Update

func (u *ExecUpdater) Update(ctx context.Context, repoPath string) (bool, error)

Update updates the repository cloned at the given path, and returns true if changes have been made

Jump to

Keyboard shortcuts

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