diff --git a/cmd/root.go b/cmd/root.go index eb0fc7d..b0e6cb0 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -8,7 +8,7 @@ import ( "strconv" jira "github.com/andygrunwald/go-jira/v2/onpremise" - "github.com/dhth/punchout/ui" + "github.com/dhth/punchout/internal/ui" ) func die(msg string, args ...any) { diff --git a/ui/cmds.go b/internal/ui/cmds.go similarity index 100% rename from ui/cmds.go rename to internal/ui/cmds.go diff --git a/ui/help.go b/internal/ui/help.go similarity index 100% rename from ui/help.go rename to internal/ui/help.go diff --git a/ui/initial.go b/internal/ui/initial.go similarity index 100% rename from ui/initial.go rename to internal/ui/initial.go diff --git a/ui/issue_delegate.go b/internal/ui/issue_delegate.go similarity index 100% rename from ui/issue_delegate.go rename to internal/ui/issue_delegate.go diff --git a/ui/jira.go b/internal/ui/jira.go similarity index 100% rename from ui/jira.go rename to internal/ui/jira.go diff --git a/ui/model.go b/internal/ui/model.go similarity index 100% rename from ui/model.go rename to internal/ui/model.go diff --git a/ui/msgs.go b/internal/ui/msgs.go similarity index 100% rename from ui/msgs.go rename to internal/ui/msgs.go diff --git a/ui/styles.go b/internal/ui/styles.go similarity index 89% rename from ui/styles.go rename to internal/ui/styles.go index 73e4f32..727611f 100644 --- a/ui/styles.go +++ b/internal/ui/styles.go @@ -7,10 +7,10 @@ import ( const ( trackingColor = "#fabd2f" - ActiveIssueKeyColor = "#d3869b" - ActiveIssueSummaryColor = "#8ec07c" - IssueStatusColor = "#665c54" - AggTimeSpentColor = "#928374" + activeIssueKeyColor = "#d3869b" + activeIssueSummaryColor = "#8ec07c" + issueStatusColor = "#665c54" + aggTimeSpentColor = "#928374" helpMsgColor = "#83a598" helpViewTitleColor = "#83a598" helpHeaderColor = "#83a598" @@ -69,11 +69,11 @@ var ( activeIssueKeyMsgStyle = trackingStyle.Copy(). PaddingLeft(1). - Foreground(lipgloss.Color(ActiveIssueKeyColor)) + Foreground(lipgloss.Color(activeIssueKeyColor)) activeIssueSummaryMsgStyle = trackingStyle.Copy(). PaddingLeft(1). - Foreground(lipgloss.Color(ActiveIssueSummaryColor)) + Foreground(lipgloss.Color(activeIssueSummaryColor)) issueTypeColors = []string{"#928374", "#d3869b", "#fabd2f", "#8ec07c", "#83a598", "#b8bb26", "#fe8019"} @@ -116,11 +116,11 @@ var ( issueStatusStyle = lipgloss.NewStyle(). PaddingLeft(1). - Foreground(lipgloss.Color(IssueStatusColor)) + Foreground(lipgloss.Color(issueStatusColor)) aggTimeSpentStyle = lipgloss.NewStyle(). PaddingLeft(2). - Foreground(lipgloss.Color(AggTimeSpentColor)) + Foreground(lipgloss.Color(aggTimeSpentColor)) helpTitleStyle = baseStyle.Copy(). Bold(true). diff --git a/ui/types.go b/internal/ui/types.go similarity index 100% rename from ui/types.go rename to internal/ui/types.go diff --git a/ui/ui.go b/internal/ui/ui.go similarity index 100% rename from ui/ui.go rename to internal/ui/ui.go diff --git a/ui/update.go b/internal/ui/update.go similarity index 100% rename from ui/update.go rename to internal/ui/update.go diff --git a/ui/utils.go b/internal/ui/utils.go similarity index 100% rename from ui/utils.go rename to internal/ui/utils.go diff --git a/ui/view.go b/internal/ui/view.go similarity index 100% rename from ui/view.go rename to internal/ui/view.go