Skip to content

Commit

Permalink
CHORE: minor release cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
fileformat committed Nov 26, 2023
1 parent fb16243 commit 5a1534a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ jobs:
with:
distribution: goreleaser
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ before:
- ./bin/completions.sh
- ./bin/manpages.sh
# you may remove this if you don't need go generate
- go generate ./...
#- go generate ./...
builds:
- env:
- CGO_ENABLED=0
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var rootCmd = &cobra.Command{
}

func Execute() {
slog.Info("root.Execute")
slog.Debug("root.Execute")
err := rootCmd.Execute()
if err != nil {
os.Exit(1)
Expand Down
7 changes: 3 additions & 4 deletions cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

var (
UserAgent string
vi VersionInfo
vi VersionInfo
)

type VersionInfo struct {
Expand All @@ -22,10 +22,9 @@ type VersionInfo struct {
var versionCmd = &cobra.Command{
Args: cobra.NoArgs,
Use: "version",
Short: "Prints fflint version information",
Short: "Version & build info",
Run: func(cmd *cobra.Command, args []string) {
fmt.Printf("Badger v%s (%s)\n", vi.Version, vi.LastMod)

fmt.Printf("social-post v%s (%s)\n", vi.Version, vi.LastMod)
},
}

Expand Down

0 comments on commit 5a1534a

Please sign in to comment.