Skip to content

Commit

Permalink
Merge pull request #31 from celestiaorg/mojtaba/move-main-to-cmd-pkg
Browse files Browse the repository at this point in the history
chore: move main to the cmd
  • Loading branch information
mojtaba-esk committed Dec 5, 2023
2 parents 8162ce8 + c22f19f commit 702a1cb
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ generate:
go generate ./...

build:
go build -o bin/$(BINARY_NAME) -v .
go build -o bin/$(BINARY_NAME) -v ./cmd

docker:
docker build -t bittwister .
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go → cmd/bittwister/root.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package cmd
package bittwister

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion cmd/serve.go → cmd/bittwister/serve.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package cmd
package bittwister

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion cmd/start.go → cmd/bittwister/start.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package cmd
package bittwister

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion cmd/cmd_utils.go → cmd/bittwister/utils.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package cmd
package bittwister

import (
"fmt"
Expand Down
9 changes: 9 additions & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package main

import (
"github.com/celestiaorg/bittwister/cmd/bittwister"
)

func main() {
bittwister.Execute()
}
9 changes: 0 additions & 9 deletions main.go

This file was deleted.

0 comments on commit 702a1cb

Please sign in to comment.