Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInternalServerError indicates that an internal server error occurred. ErrInternalServerError = errors.New("internal server error") // Command is the hook command. Command = &cobra.Command{ Use: "hook", Short: "Run git server hooks", Long: "Handles Soft Serve git server hooks.", Hidden: true, PersistentPreRunE: func(c *cobra.Command, args []string) error { logger := log.FromContext(c.Context()) if err := cmd.InitBackendContext(c, args); err != nil { logger.Error("failed to initialize backend context", "err", err) return ErrInternalServerError } return nil }, PersistentPostRunE: func(c *cobra.Command, args []string) error { logger := log.FromContext(c.Context()) if err := cmd.CloseDBContext(c, args); err != nil { logger.Error("failed to close backend", "err", err) return ErrInternalServerError } return nil }, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.