mirror of
https://github.com/DeBrosOfficial/orama.git
synced 2026-03-17 16:26:57 +00:00
19 lines
524 B
Go
19 lines
524 B
Go
package node
|
|
|
|
import (
|
|
"github.com/DeBrosOfficial/network/pkg/cli/production/invite"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var inviteCmd = &cobra.Command{
|
|
Use: "invite",
|
|
Short: "Manage invite tokens for joining the cluster",
|
|
Long: `Generate invite tokens that allow new nodes to join the cluster.
|
|
Running without a subcommand creates a new token (same as 'invite create').`,
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
// Default behavior: create a new invite token
|
|
invite.Handle(args)
|
|
},
|
|
DisableFlagParsing: true,
|
|
}
|