Skip to content

Commit 294e20a

Browse files
committed
feat: main.go in root
1 parent 1e85e43 commit 294e20a

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package main
1+
package cmd
22

33
import (
44
"flag"
@@ -9,9 +9,9 @@ import (
99
"google.golang.org/protobuf/types/pluginpb"
1010
)
1111

12-
const version = "1.0.0"
12+
const version = "0.3.0"
1313

14-
func main() {
14+
func Execute() {
1515
showVersion := flag.Bool("version", false, "print the version and exit")
1616
flag.Parse()
1717
if *showVersion {

main.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package main
2+
3+
import "github.com/purefun/protoc-gen-dapr/cmd"
4+
5+
func main() {
6+
cmd.Execute()
7+
}

0 commit comments

Comments
 (0)