Skip to content

Commit

Permalink
refactor: reformatting imports with zed
Browse files Browse the repository at this point in the history
  • Loading branch information
neptship committed Jun 29, 2024
1 parent 6fe35fa commit 670d4d4
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ linters:
- ineffassign
- importas
- misspell
- staticcheck
- staticcheck
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ lint:
@golangci-lint run ./... --config=./.golangci.yml

lint-fast:
@golangci-lint run ./... --fast --config=./.golangci.yml
@golangci-lint run ./... --fast --config=./.golangci.yml
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/></a>
</p>
<h2>Features</h2>

- Fast
- Cross-Platform - Linux, macOS, Windows
- Easy installation
Expand Down
5 changes: 3 additions & 2 deletions cmd/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package cmd

import (
"fmt"
"github.com/neptship/ignore/internal"
"github.com/spf13/cobra"
"log"
"os"

"github.com/neptship/ignore/internal"
"github.com/spf13/cobra"
)

var addCommand = &cobra.Command{
Expand Down
3 changes: 2 additions & 1 deletion cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package cmd

import (
"fmt"
"github.com/spf13/cobra"
"log"
"os"

"github.com/spf13/cobra"
)

func init() {
Expand Down
1 change: 1 addition & 0 deletions cmd/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package cmd

import (
"fmt"

"github.com/neptship/ignore/internal"
"github.com/spf13/cobra"
)
Expand Down
5 changes: 3 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package cmd

import (
"fmt"
"os"
"strings"

"github.com/charmbracelet/log"
cc "github.com/ivanpirog/coloredcobra"
"github.com/spf13/cobra"
"os"
"strings"
)

var rootCmd = &cobra.Command{
Expand Down
7 changes: 4 additions & 3 deletions cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package cmd

import (
"fmt"
"html/template"
"runtime"

"github.com/charmbracelet/lipgloss"
"github.com/neptship/ignore/version"
"github.com/spf13/cobra"
"html/template"
"runtime"
)

func init() {
Expand Down Expand Up @@ -40,7 +41,7 @@ var versionCmd = &cobra.Command{
"faint": lipgloss.NewStyle().Faint(true).Render,
"bold": lipgloss.NewStyle().Bold(true).Render,
"magenta": lipgloss.NewStyle().Foreground(lipgloss.Color("#5a6368")).Render,
}).Parse(`{{ magenta "▇▇▇" }} {{ magenta .App }}
}).Parse(`{{ magenta "▇▇▇" }} {{ magenta .App }}
{{ faint "Version" }} {{ bold .Version }}
{{ faint "Platform" }} {{ bold .OS }}/{{ bold .Arch }}
Expand Down
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package main

import (
"os"

"github.com/charmbracelet/log"
"github.com/neptship/ignore/cmd"
"os"
)

func handlePanic() {
Expand Down

0 comments on commit 670d4d4

Please sign in to comment.