sync

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountPorcelainLines

func CountPorcelainLines(porcelain string) (staged, unstaged, untracked int)

CountPorcelainLines parses `git status --porcelain` output (including synthetic fixtures in tests).

func NewSyncCmd

func NewSyncCmd(deps Deps) *cobra.Command

NewSyncCmd builds the `da sync` command tree from injected dependencies.

Types

type Deps

type Deps struct {
	Flags      GlobalFlags
	RunRefresh func(projectFilter string) error
}

Deps carries cross-package behavior the sync subtree cannot import from commands without creating an import cycle.

type GlobalFlags

type GlobalFlags struct {
	DryRun bool
	Yes    bool
	Force  bool
}

GlobalFlags mirrors the subset of commands.GlobalFlags used by sync subcommands.

Jump to

Keyboard shortcuts

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