diff options
author | Valery Piashchynski <[email protected]> | 2022-06-28 14:38:42 +0200 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2022-06-28 14:39:17 +0200 |
commit | 7cc65df41fb2d31937b3a7b7bfb4b5ec4116f26b (patch) | |
tree | 81ab50c1ac80398a2bfae79927639a156d8bb2ac /internal/cli | |
parent | 1e209537c94819ccb2b47b5a954ab582357a4e44 (diff) |
feat: add more info to the `./rr --version`
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'internal/cli')
-rw-r--r-- | internal/cli/root.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/cli/root.go b/internal/cli/root.go index 1af7ef41..158eb478 100644 --- a/internal/cli/root.go +++ b/internal/cli/root.go @@ -50,7 +50,7 @@ func NewCommand(cmdName string) *cobra.Command { //nolint:funlen,gocognit Short: "High-performance PHP application server, load-balancer and process manager", SilenceErrors: true, SilenceUsage: true, - Version: fmt.Sprintf("%s (build time: %s, %s)", meta.Version(), meta.BuildTime(), runtime.Version()), + Version: fmt.Sprintf("%s (build time: %s, %s), OS: %s, arch: %s", meta.Version(), meta.BuildTime(), runtime.Version(), runtime.GOOS, runtime.GOARCH), PersistentPreRunE: func(*cobra.Command, []string) error { // cfgFile could be defined by user or default `.rr.yaml` // this check added just to be safe |