cmd

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: Zlib Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RootCmd = &cobra.Command{
		Use:   "pogo",
		Short: "A centralized version control system that is simple and easy to use",
		Long: `Pogo is a centralized version control system designed to be straightforward and efficient.

Unlike Git, Pogo uses a centralized server as the single source of truth for all your data.
It features an easy-to-use CLI, a simple web UI, and robust support for both text and binary files.
Conflicts are treated as first-class citizens - they can be pushed to the remote and resolved later.

Key concepts:
- Changes: The fundamental unit of work, similar to commits in Git
- Bookmarks: Named references to specific changes (like tags/branches in Git)
- No named branches: Create branches by adding multiple children to a change
- Automatic naming: Changes are automatically named with memorable identifiers

For more information, visit: https://github.com/pogo-vcs/pogo`,
		PersistentPreRun: func(cmd *cobra.Command, args []string) {
			if globalTimer {
				globalTimeStart = time.Now()
			}
		},
		PersistentPostRun: func(cmd *cobra.Command, args []string) {
			if globalTimer {
				_, _ = fmt.Fprintf(cmd.OutOrStderr(), "\nTime: %s\n", time.Since(globalTimeStart))
			}
		},
	}
)
View Source
var Version = "dev"

Functions

func Execute

func Execute()

Types

type InfoData

type InfoData struct {
	ChangeNamePrefix  string
	ChangeNameSuffix  string
	ChangeName        string
	ChangeDescription string
	Bookmarks         []string
	IsInConflict      bool
	Error             string
}

Jump to

Keyboard shortcuts

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