Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProvideCorreiosCLI = func(baseURL, validationURL string) CorreiosCLI { return CorreiosCLI{service: services.ProvideCorreiosService(baseURL, validationURL)} }
ProvideCorreiosCLI provides a CorreiosCLI
View Source
var ProvideNewModel = func(orderNumber, baseURL, validationURL string) *model { return &model{ orderNumber: orderNumber, service: services.ProvideCorreiosService(baseURL, validationURL), } }
Functions ¶
func FormatListToListItem ¶
func FormatListToListItem(response *dto.CorreiosResponse, err error) []list.Item
func RenderBubbleTeaList ¶
func RenderBubbleTeaList(orderNumber string)
Types ¶
type CorreiosCLI ¶
type CorreiosCLI struct {
// contains filtered or unexported fields
}
CorreiosCLI provides the cli validation for correios command
func (*CorreiosCLI) RetrieveOrder ¶
func (cli *CorreiosCLI) RetrieveOrder(orderNumber string)
RetrieveOrder prints the order data on the terminal
Click to show internal directories.
Click to hide internal directories.