buginput

package
v0.10.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyMessage = errors.New("empty message")

ErrEmptyMessage is returned when the required message has not been entered

View Source
var ErrEmptyTitle = errors.New("empty title")

ErrEmptyTitle is returned when the required title has not been entered

Functions

func BugCommentEditorInput

func BugCommentEditorInput(repo repository.RepoCommonStorage, preMessage string) (string, error)

BugCommentEditorInput will open the default editor in the terminal with a template for the user to fill. The file is then processed to extract a comment.

func BugCommentFileInput

func BugCommentFileInput(fileName string) (string, error)

BugCommentFileInput read from either from a file or from the standard input and extract a message

func BugCreateEditorInput

func BugCreateEditorInput(repo repository.RepoCommonStorage, preTitle string, preMessage string) (string, string, error)

BugCreateEditorInput will open the default editor in the terminal with a template for the user to fill. The file is then processed to extract title and message.

func BugCreateFileInput

func BugCreateFileInput(fileName string) (string, string, error)

BugCreateFileInput read from either from a file or from the standard input and extract a title and a message

func BugTitleEditorInput

func BugTitleEditorInput(repo repository.RepoCommonStorage, preTitle string) (string, error)

BugTitleEditorInput will open the default editor in the terminal with a template for the user to fill. The file is then processed to extract a title.

func QueryEditorInput

func QueryEditorInput(repo repository.RepoCommonStorage, preQuery string) (string, error)

QueryEditorInput will open the default editor in the terminal with a template for the user to fill. The file is then processed to extract a query.

Types

This section is empty.

Jump to

Keyboard shortcuts

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