cmd

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 29 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "align [flags]",
	Short: "Tool for managing git repos together",
	Long: `align fans out git operations across every git repository in the current directory.

Each sub-command mirrors its git equivalent and runs it against all repos found in the working directory.

Use --verbose (-v) when scripting or using align with AI tools. Verbose mode replaces the
interactive progress bars with structured per-repo output written to stdout, which is easier
to parse and redirect.

Export portable agent guidance with 'align skills dump'; see its help for details.

` + selectionHelp + "\n\n" + aliasHelp,
	TraverseChildren: true,
	PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
		err := selection.Reject(cmd, args)
		if err != nil {
			return err
		}

		if cmd.Name() == "help" && len(args) > 0 && args[0] == "skills" {
			return nil
		}

		if _, err := exec.LookPath("git"); err != nil {
			return fmt.Errorf("git is not installed or not on PATH — it is required for align to function")
		}

		return nil
	},
}
View Source
var (
	// Version is the current version of align, made available for use through
	// out the application.
	Version string
)

Functions

func Execute

func Execute() error

Execute registers aliases when needed and runs the command selected by os.Args.

Types

This section is empty.

Directories

Path Synopsis
Package concurrency connects the --concurrency flag to the worker pool limit.
Package concurrency connects the --concurrency flag to the worker pool limit.
Package selection connects invocation flags to local repository discovery.
Package selection connects invocation flags to local repository discovery.

Jump to

Keyboard shortcuts

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