Initial QSfera import

This commit is contained in:
Курнат Андрей
2026-06-07 10:20:04 +03:00
commit 2315f25754
16485 changed files with 4826827 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
package register
import (
"github.com/spf13/cobra"
"github.com/qsfera/server/pkg/config"
)
var (
// Commands define the slice of commands.
Commands []Command
)
// Command defines the register command.
type Command func(*config.Config) *cobra.Command
// AddCommand appends a command to Commands.
func AddCommand(cmd Command) {
Commands = append(
Commands,
cmd,
)
}