Files
netrunner/cmd/netrunner/commands/status.go
T
Zach Kelling 4e2a4e432e chore: remove local replace directives and update dependencies
- Update github.com/luxfi/keys v1.0.5 → v1.0.6
- Update github.com/luxfi/genesis v1.5.18 → v1.5.19
- Remove local replace directives for keys and genesis
- Use published package versions for reproducible builds
2026-01-03 07:05:17 -08:00

43 lines
956 B
Go

// Copyright (C) 2025, Lux Industries Inc. All rights reserved.
// SPDX-License-Identifier: BSD-3-Clause
package commands
import (
"fmt"
"os"
"text/tabwriter"
"github.com/luxfi/log"
"github.com/spf13/cobra"
)
// NewStatusCmd creates the status command
func NewStatusCmd(logger log.Logger) *cobra.Command {
return &cobra.Command{
Use: "status",
Short: "Show overall system status",
RunE: func(cmd *cobra.Command, args []string) error {
fmt.Println("🔍 Netrunner System Status")
fmt.Println()
// Show running engines
fmt.Println("Running Engines:")
w := tabwriter.NewWriter(os.Stdout, 0, 0, 2, ' ', 0)
fmt.Fprintln(w, "NAME\tTYPE\tSTATUS\tUPTIME\tRPC")
fmt.Fprintln(w, "----\t----\t------\t------\t---")
// TODO: Implement global registry
fmt.Fprintln(w, "(No engines running)")
w.Flush()
fmt.Println()
fmt.Println("Deployed Stacks: 0")
fmt.Println("Active Bridges: 0")
return nil
},
}
}