Skip to content

Commit

Permalink
lot's of template fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
can3p committed Jan 11, 2024
1 parent 3064310 commit ddeacde
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
4 changes: 2 additions & 2 deletions template/cmd/root.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"os"

"github.com/{{ .GithubRepo }}/generated/buildinfo"
cmd "github.com/{{ .GithubRepo }}/shared/cmd/cobra"
"github.com/{{ .GithubRepo }}/shared/published"
cmd "github.com/can3p/kleiner/shared/cmd/cobra"
"github.com/can3p/kleiner/shared/published"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions template/generated/buildinfo/buildinfo.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"runtime/debug"
"time"

"github.com/{{ .GithubRepo }}/shared/types"
"github.com/{{ .GithubRepo }}/shared/version"
"github.com/can3p/kleiner/shared/types"
"github.com/can3p/kleiner/shared/version"
"github.com/pkg/errors"
)

Expand Down
2 changes: 1 addition & 1 deletion template/generated/buildinfo/env_dev.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package buildinfo
import (
"time"

"github.com/{{ .GithubRepo }}/shared/version"
"github.com/can3p/kleiner/shared/version"
)

// The code has been borrowed from flyctl project - https://github.com/superfly/flyctl/blob/0dff860a878e2b280f2f53ce2aaf21ce39d800c2/internal/buildinfo
Expand Down
2 changes: 1 addition & 1 deletion template/generated/buildinfo/env_production.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package buildinfo
import (
"time"

"github.com/{{ .GithubRepo }}/shared/version"
"github.com/can3p/kleiner/shared/version"
)

// The code has been borrowed from flyctl project - https://github.com/superfly/flyctl/blob/0dff860a878e2b280f2f53ce2aaf21ce39d800c2/internal/buildinfo
Expand Down
9 changes: 9 additions & 0 deletions template/main.go.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package main

import (
"github.com/{{ .GithubRepo }}/cmd"
)

func main() {
cmd.Execute()
}

0 comments on commit ddeacde

Please sign in to comment.