cmd

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 25 Imported by: 0

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.`,
	PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
		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()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the RootCmd.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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