commands

package
v0.0.0-...-71969a7 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitAICommand

func InitAICommand(rootCmd *cobra.Command)

func InitCatCommand

func InitCatCommand(rootCmd *cobra.Command)

InitCatCommand wires up the cat command

func InitCodeReviewCommand

func InitCodeReviewCommand(rootCmd *cobra.Command)

func InitCommitCommand

func InitCommitCommand(rootCmd *cobra.Command)

func InitDaemonCommand

func InitDaemonCommand(rootCmd *cobra.Command)

func InitSecurityReviewCommand

func InitSecurityReviewCommand(rootCmd *cobra.Command)

func ParseCommitMessage

func ParseCommitMessage(input string) (string, error)

func ParseReviewComments

func ParseReviewComments(input string) (string, error)

func ParseSecurityReview

func ParseSecurityReview(input string) (string, error)

func ParseTaggedContent

func ParseTaggedContent(input, tag string) (string, error)

Types

type CatCommandError

type CatCommandError struct {
	MainError error
	Pattern   string
	FileCount int
}

CatCommandError is a custom error type for the cat command

func (*CatCommandError) Error

func (e *CatCommandError) Error() string

type FileInfoJSON

type FileInfoJSON struct {
	Filename     string     `json:"filename,omitempty"`
	RelativePath string     `json:"relative_path"`
	FileType     string     `json:"file_type,omitempty"`
	Content      string     `json:"content"`
	FileSize     int64      `json:"file_size,omitempty"`
	LastModified *time.Time `json:"last_modified,omitempty"`
	LineCount    int        `json:"line_count,omitempty"`
	MD5Checksum  string     `json:"md5_checksum,omitempty"`
}

FileInfoJSON is a struct for JSON output that conditionally includes fields

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳