Skip to content

Commit

Permalink
chore: rename package
Browse files Browse the repository at this point in the history
  • Loading branch information
CeoFred committed Dec 1, 2023
1 parent e392d89 commit 789a77d
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 19 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nturu
7 changes: 4 additions & 3 deletions cmd/generate.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
package cmd

import (
"fmt"
"github.com/spf13/cobra"
"embed"
"fmt"
"os"
"os/exec"
"path/filepath"
"runtime"

"github.com/CeoFred/godigger/cmd/utils"
"github.com/spf13/cobra"

"github.com/CeoFred/nturu/cmd/utils"
)

//go:embed templates/*
Expand Down
6 changes: 3 additions & 3 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
)

var rootCmd = &cobra.Command{
Use: "godigger",
Short: "godigger is a microservice boilerplate generator using go.",
Long: `godigger is a microservice boilerplate generator using go.`,
Use: "nturu",
Short: "nturu is a microservice boilerplate generator using go.",
Long: `nturu is a microservice boilerplate generator using go.`,
Run: func(cmd *cobra.Command, args []string) {
// Do Stuff Here
fmt.Println("We just go started!")
Expand Down
20 changes: 10 additions & 10 deletions cmd/version.go
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
package cmd

import (
"fmt"
"fmt"

"github.com/spf13/cobra"
"github.com/spf13/cobra"
)

func init() {
rootCmd.AddCommand(versionCmd)
rootCmd.AddCommand(versionCmd)
}

var versionCmd = &cobra.Command{
Use: "version",
Short: "Print the version number of Godigger",
Long: `All software has versions. This is Godigger's`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("Godigger Microservice Generator v0.1 -- HEAD")
},
}
Use: "version",
Short: "Print the version number of nturu",
Long: `All software has versions. This is nturu's`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("nturu Microservice Generator v0.1 -- HEAD")
},
}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/CeoFred/godigger
module github.com/CeoFred/nturu

go 1.21.2

Expand Down
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package main

import (
"github.com/CeoFred/godigger/cmd"
"github.com/CeoFred/nturu/cmd"
)

func main() {

cmd.Execute()
}
}

0 comments on commit 789a77d

Please sign in to comment.