mirror of
https://github.com/luxfi/netrunner.git
synced 2026-07-27 00:04:23 +00:00
- 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
43 lines
956 B
Go
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
|
|
},
|
|
}
|
|
}
|