Documentation
¶
Index ¶
- Constants
- func ResolveConfigPath(flagPath string) string
- func ResolveRepoPath(flagRepo string, cfg Config) (string, error)
- func WriteConfig(path string, cfg Config) error
- type Apple
- type Config
- type GitConfig
- type Google
- type Repair
- type Repo
- func (r Repo) Commit(ctx context.Context, message string) (bool, error)
- func (r Repo) Dirty(ctx context.Context) (bool, error)
- func (r Repo) IndexDir() string
- func (r Repo) Init(ctx context.Context) error
- func (r Repo) MirrorOptions() mirror.Options
- func (r Repo) PeopleDir() string
- func (r Repo) Pull(ctx context.Context) error
- func (r Repo) Push(ctx context.Context) error
- func (r Repo) RepairDir() string
- func (r Repo) Require() error
Constants ¶
View Source
const ( DefaultConfigEnv = "CLAWDEX_CONFIG" RepoEnv = "CLAWDEX_REPO" DefaultRemote = "https://github.com/steipete/backup-clawdex.git" )
Variables ¶
This section is empty.
Functions ¶
func ResolveConfigPath ¶
func WriteConfig ¶
Types ¶
type Config ¶
type Config struct {
Version int `toml:"version" json:"version"`
RepoPath string `toml:"repo_path" json:"repo_path"`
Git GitConfig `toml:"git" json:"git"`
Repair Repair `toml:"repair" json:"repair"`
Google Google `toml:"google" json:"google"`
Apple Apple `toml:"apple" json:"apple"`
}
func DefaultConfig ¶
func DefaultConfig() Config
func LoadConfig ¶
type Repo ¶
func (Repo) MirrorOptions ¶
Click to show internal directories.
Click to hide internal directories.