Skip to content

Commit

Permalink
Merge pull request #7 from nais/main_root
Browse files Browse the repository at this point in the history
Move main package to root
  • Loading branch information
thokra-nav authored Jul 10, 2023
2 parents 09bb527 + 5db50cf commit 94ac8a1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ builds:
- darwin_arm64
id: narc
dir: .
main: ./cmd
main: ./
binary: narc
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}}
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: build

build:
go build -o narc ./cmd/
go build -o narc ./
4 changes: 2 additions & 2 deletions cmd/main.go → cmd/entrypoint.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package cmd

import (
"log"
Expand All @@ -9,7 +9,7 @@ import (
"github.com/urfave/cli/v2"
)

func main() {
func Run() {
app := &cli.App{
Name: "narc",
Usage: "NAIS Administrator CLI",
Expand Down
7 changes: 7 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package main

import "github.com/nais/narcos/cmd"

func main() {
cmd.Run()
}

0 comments on commit 94ac8a1

Please sign in to comment.