git

package
v0.1.31 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Package git...

Index

Constants

This section is empty.

Variables

View Source
var (

	// ImportCmd clones a Git repository and imports bookmarks.
	ImportCmd = &cobra.Command{
		Use:   "import",
		Short: "import bookmarks from git",
		RunE: func(cmd *cobra.Command, args []string) error {
			cfg, err := config.FromContext(cmd.Context())
			if err != nil {
				return fmt.Errorf("failed to get config: %w", err)
			}
			if cfg.Flags.Path == "" {
				return git.ErrGitRepoURLEmpty
			}
			a := app.New(cmd.Context(), app.WithConfig(cfg))

			return importFromClone(a, cmd.Short)
		},
	}
)

Functions

func NewCmd added in v0.1.30

func NewCmd(cfg *config.Config) *cobra.Command

NewCmd is the git command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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