From 24c0523f72722a94616d2e9f731ef1fecd45cce8 Mon Sep 17 00:00:00 2001 From: Christian Date: Tue, 19 Nov 2024 15:51:12 -0800 Subject: [PATCH] moving function (#71) --- cmd/styles.go | 7 +++++++ cmd/types.go | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/styles.go b/cmd/styles.go index 3f5dffb..9435520 100644 --- a/cmd/styles.go +++ b/cmd/styles.go @@ -38,3 +38,10 @@ var ( "fairy": "#EE99EE", } ) + +// Helper function to get color for a given type name from colorMap +func getTypeColor(typeName string) string { + color := colorMap[typeName] + + return color +} diff --git a/cmd/types.go b/cmd/types.go index b004e79..dd28069 100644 --- a/cmd/types.go +++ b/cmd/types.go @@ -51,13 +51,6 @@ func (m model) View() string { return "Select a type! Hit 'Q' or 'CTRL-C' to quit.\n" + typesTableBorder.Render(m.table.View()) + "\n" } -// Helper function to get color for a given type name from colorMap -func getTypeColor(typeName string) string { - color := colorMap[typeName] - - return color -} - // Function to display type details after a type is selected func displayTypeDetails(typesName string, endpoint string) {