cli

package
v0.0.0-...-26823d6 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSnippetDescription

func GenerateSnippetDescription(snpt *pb.Snippet) string

GenerateSnippetDescription generates a snippet description

func PrintError

func PrintError(out io.Writer, format string, a ...interface{})

PrintError prints an error message

func PrintInfo

func PrintInfo(out io.Writer, format string, a ...interface{})

PrintInfo prints an info message

func PrintSuccess

func PrintSuccess(out io.Writer, format string, a ...interface{})

PrintSuccess prints a success message

func ResolveSnippet

func ResolveSnippet(args []string, hasInput bool, in io.Reader, snptStore *snippet.Store) (*pb.Snippet, error)

ResolveSnippet resolves a snippet via either a passed argument, standard input or user prompt

Types

This section is empty.

Jump to

Keyboard shortcuts

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