package cli import ( "github.com/spf13/cobra" ) var nodeCmd = &cobra.Command{ Use: "node", Short: "Manage orca nodes", Long: "Join, leave, or list orca nodes in the cluster.", } var nodeJoinCmd = &cobra.Command{ Use: "join", Short: "Join a node to the orca cluster", Long: "Register the local node with the orca cluster. Implemented in Phase 2.", RunE: func(cmd *cobra.Command, args []string) error { return notImplemented("orca node join") }, } var nodeLeaveCmd = &cobra.Command{ Use: "leave", Short: "Remove a node from the orca cluster", Long: "Deregister a node from the orca cluster. Implemented in Phase 2.", RunE: func(cmd *cobra.Command, args []string) error { return notImplemented("orca node leave") }, } var nodeListCmd = &cobra.Command{ Use: "list", Short: "List all nodes in the orca cluster", Long: "Display all registered nodes. Implemented in Phase 2.", RunE: func(cmd *cobra.Command, args []string) error { return notImplemented("orca node list") }, } func init() { nodeCmd.AddCommand(nodeJoinCmd) nodeCmd.AddCommand(nodeLeaveCmd) nodeCmd.AddCommand(nodeListCmd) rootCmd.AddCommand(nodeCmd) }