Skip to content

Commit

Permalink
Fix installation problem
Browse files Browse the repository at this point in the history
* Move main file to root dir.

* Update pkg name for `cmd.go`.

* Update README.

Signed-off-by: Gökhan Özeloğlu <[email protected]>
  • Loading branch information
gozeloglu committed Dec 6, 2024
1 parent 3d5d435 commit 5d504e4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ go install github.com/gozeloglu/bm@latest

You can build and run the application with the following command. It can be used for local development tests.
```shell
go build cmd/* && go install cmd/bm.go cmd/cmd.go
go build bm.go && go install bm.go
```

## Usage
Expand Down
7 changes: 7 additions & 0 deletions bm.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package main

import "github.com/gozeloglu/bm/cmd"

func main() {
cmd.Run()
}
5 changes: 0 additions & 5 deletions cmd/bm.go

This file was deleted.

2 changes: 1 addition & 1 deletion cmd/cmd.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package cmd

import (
"flag"
Expand Down

0 comments on commit 5d504e4

Please sign in to comment.