command

package
v0.0.0-...-f01fb92 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommitCommand = &cli.Command{
	Name:  "commit",
	Usage: "Create a commit",
	Flags: []cli.Flag{
		&cli.StringFlag{
			Name:    "message",
			Aliases: []string{"m"},
		},
	},
	Action: Commit,
}
View Source
var ConfigCommand = &cli.Command{
	Name:  "config",
	Usage: "Set and get values from configuration files",
	Flags: []cli.Flag{
		&cli.BoolFlag{
			Name: "local",
		},
		&cli.BoolFlag{
			Name: "global",
		},
		&cli.BoolFlag{
			Name: "system",
		},
	},
	Action: Config,
}
View Source
var InitCommand = &cli.Command{
	Name:   "init",
	Usage:  "Initialize gogit repository (create necessary files and folders)",
	Action: Init,
}

Functions

func Commit

func Commit(c *cli.Context) error

func Config

func Config(c *cli.Context) error

func Init

func Init(c *cli.Context) error

Types

type CommitError

type CommitError struct {
	// contains filtered or unexported fields
}

func (CommitError) Error

func (e CommitError) Error() string

Jump to

Keyboard shortcuts

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