Skip to content

Commit

Permalink
feat: add nodekit version to debug command
Browse files Browse the repository at this point in the history
  • Loading branch information
Tasos Bitsios committed Jan 21, 2025
1 parent ee0d5a3 commit 0fb02c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
// DebugInfo represents diagnostic information about
// the Algod service, path availability, and related metadata.
type DebugInfo struct {
Version string `json:"version"`

// InPath indicates whether the `algod` command-line tool is available in the system's executable path.
InPath bool `json:"inPath"`
Expand Down Expand Up @@ -86,6 +87,7 @@ var debugCmd = cmdutils.WithAlgodFlags(&cobra.Command{
folderDebug.BytesFree = fmt.Sprintf("%d bytes (%d MB)", bytesFree, bytesFree/1024/1024)

info := DebugInfo{
Version: cmd.Root().Version,
InPath: system.CmdExists("algod"),
IsRunning: algod.IsRunning(),
IsService: algod.IsService(),
Expand Down

0 comments on commit 0fb02c2

Please sign in to comment.