manifest

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(m *Manifest, path string) error

Write serializes the manifest to a JSON file.

Types

type Manifest

type Manifest struct {
	GeneratedAt time.Time `json:"generated_at"`
	GitHubUser  string    `json:"github_user"`
	Repos       []Repo    `json:"repos"`
}

func Read

func Read(path string) (*Manifest, error)

Read deserializes a manifest from a JSON file.

type Repo

type Repo struct {
	Source      string    `json:"source"`
	FullName    string    `json:"full_name"`
	CloneURL    string    `json:"clone_url"`
	Description string    `json:"description"`
	Private     bool      `json:"private"`
	Fork        bool      `json:"fork"`
	UpdatedAt   time.Time `json:"updated_at"`
	MirrorOwner string    `json:"mirror_owner"`
	MirrorName  string    `json:"mirror_name"`
	Skip        bool      `json:"skip"`
}

func Deduplicate

func Deduplicate(repos []Repo) []Repo

Deduplicate removes duplicate repos by full_name, keeping the first occurrence.

Jump to

Keyboard shortcuts

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