Skip to content

Commit

Permalink
chore: mv main to root
Browse files Browse the repository at this point in the history
Signed-off-by: Josef Andersson <[email protected]>
  • Loading branch information
janderssonse committed Feb 2, 2025
1 parent 44105e8 commit 1d17003
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ASMFLAGS = all=
CGO_ENABLED = 0

# Change these variables as necessary.
MAIN_PACKAGE_PATH := ./cmd/gommitlint
MAIN_PACKAGE_PATH := ./
DIR = ./dist
EXECUTABLE = gommitlint
SHELL := /bin/bash # Use bash syntax
Expand Down
3 changes: 1 addition & 2 deletions cmd/gommitlint/root.go → cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
//
// SPDX-License-Identifier: MPL-2.0

// Package main provides CLI commands.
package main
package cmd

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion cmd/gommitlint/validate.go → cmd/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: MPL-2.0

package main
package cmd

import (
"errors"
Expand Down
2 changes: 1 addition & 1 deletion docs/usage.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ To install gommitlint you can download a https://github.com/itiquette/gommitlint

[source,bash]
----
go install github.com/itiquette/gommitlint/cmd/gommitlint@latest
go install github.com/itiquette/gommitlint/cmd@latest
----

Third option is to run it as a container:
Expand Down
4 changes: 3 additions & 1 deletion cmd/gommitlint/main.go → main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@

package main

import "github.com/itiquette/gommitlint/cmd"

var (
version = "dev"
commit = "none"
date = "unknown"
)

func main() {
Execute(version, commit, date)
cmd.Execute(version, commit, date)
}

0 comments on commit 1d17003

Please sign in to comment.