app

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Cfg *config.Config // Cfg holds global configuration settings
	// contains filtered or unexported fields
}

App is the main application object that coordinates interaction with the artifact store and the process runner.

func New

func New(cfg *config.Config) *App

New creates a new App given a configuration. It initializes the underlying store and runner.

func (*App) Login

func (a *App) Login(ctx context.Context, registry, user, pass string) error

Login authenticates against the specified OCI registry. It tries flags first, then configuration, and finally prompts interactively for missing username or password.

func (*App) Pull

func (a *App) Pull(ctx context.Context, reference string) error

Pull fetches a remote Makefile artifact and prints its contents to stdout. It first retrieves the file from cache or, on cache miss, from the registry.

func (*App) Push

func (a *App) Push(ctx context.Context, reference, path string) error

Push uploads a local Makefile artifact to the given OCI reference. reference should be in the form "registry/repo:tag".

func (*App) Run

func (a *App) Run(ctx context.Context, reference string, makeFlags, targets []string) error

Run pulls the specified Makefile (from cache or registry) and executes the given targets using the configured process runner.

Jump to

Keyboard shortcuts

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