forked from topi314/gobin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* idk tracing? * working traces lol * use otelchi & add metrics * update modules * add db system * update deps * update deps * format imports * use slog * update var names * add trace id to logs * update go version * fix log level & type * add span id to log * add sql args to traces * move logs into config * Update docker.yml
- Loading branch information
Showing
24 changed files
with
638 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,26 @@ | ||
package main | ||
|
||
import ( | ||
"time" | ||
|
||
"github.com/topisenpai/gobin/cmd" | ||
"github.com/topisenpai/gobin/gobin" | ||
) | ||
|
||
// These variables are set via the -ldflags option in go build | ||
var ( | ||
version = "unknown" | ||
commit = "unknown" | ||
buildTime = "unknown" | ||
Version = "unknown" | ||
Commit = "unknown" | ||
BuildTime = "unknown" | ||
) | ||
|
||
func main() { | ||
rootCmd := cmd.NewRootCmd() | ||
cmd.NewGetCmd(rootCmd) | ||
cmd.NewPushCmd(rootCmd) | ||
cmd.NewRmCmd(rootCmd) | ||
cmd.NewVersionCmd(rootCmd, gobin.FormatBuildVersion(version, commit, buildTime)) | ||
buildTime, _ := time.Parse(time.RFC3339, BuildTime) | ||
cmd.NewVersionCmd(rootCmd, gobin.FormatBuildVersion(Version, Commit, buildTime)) | ||
cmd.NewCompletionCmd(rootCmd) | ||
cmd.Execute(rootCmd) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.