diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8eb139b0..bc02ba8a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -38,11 +38,6 @@ jobs: - name: Go Init uses: ./.github/actions/go_init - - name: find deadcode - run: | - go install golang.org/x/tools/cmd/deadcode@latest - deadcode . | tee out && [ ! -s out ] - # get .golangci.yml from github.com/overmindtech/golangci-lint_config - name: Get .golangci.yml from github.com/overmindtech/golangci-lint_configs run: | diff --git a/cmd/changes_submit_plan.go b/cmd/changes_submit_plan.go index 48d46fc1..cb43ec91 100644 --- a/cmd/changes_submit_plan.go +++ b/cmd/changes_submit_plan.go @@ -44,11 +44,6 @@ type TfData struct { Values map[string]any } -type plannedChangeGroups struct { - supported map[string][]*sdp.MappedItemDiff - unsupported map[string][]*sdp.MappedItemDiff -} - func changeTitle(arg string) string { if arg != "" { // easy, return the user's choice diff --git a/cmd/logging.go b/cmd/logging.go index df40d96b..6551ba32 100644 --- a/cmd/logging.go +++ b/cmd/logging.go @@ -1,19 +1,9 @@ package cmd import ( - "os" - - "github.com/mattn/go-isatty" "github.com/ttacon/chalk" ) -var tty bool - -func init() { - // Detect if we're in a TTY or not - tty = isatty.IsTerminal(os.Stdout.Fd()) -} - var ( // Styles Underline = TextStyle{chalk.Underline} diff --git a/cmd/theme.go b/cmd/theme.go index dec84b4a..5ac3a7aa 100644 --- a/cmd/theme.go +++ b/cmd/theme.go @@ -303,12 +303,6 @@ func MarkdownStyle() ansi.StyleConfig { } } -var titleStyle = lipgloss.NewStyle().Foreground(ColorPalette.BgMain).Bold(true) -var textStyle = lipgloss.NewStyle().Foreground(ColorPalette.LabelBase) -var addedLineStyle = lipgloss.NewStyle().Foreground(ColorPalette.LabelControl).Background(ColorPalette.BgSuccess) -var deletedLineStyle = lipgloss.NewStyle().Background(ColorPalette.BgDanger).Foreground(ColorPalette.LabelControl) -var containerStyle = lipgloss.NewStyle().PaddingLeft(2).PaddingTop(2) - func styleH1() lipgloss.Style { return lipgloss.NewStyle(). Foreground(lipgloss.Color("#ffffff")).