commands

package
v0.0.0-...-3796b3f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateGameCmd = &cobra.Command{
	Use:   string(config.CreateGame),
	Short: "Create a game server",
	Long:  `Create a new game server session through the Zephyr server.`,
	Run:   createGame,
}
View Source
var DestroySessionCmd = &cobra.Command{
	Use:   "destroy-session",
	Short: "Destroy a game session",
	Long:  `Initiate the destruction of a game session through the Zephyr server.`,
	Run:   destroySession,
}
View Source
var ListGamesCmd = &cobra.Command{
	Use:   "list-games",
	Short: "List all available games",
	Long:  `Retrieve a list of all available games from the Zephyr server.`,
	Run:   listGames,
}
View Source
var ListSessionsCmd = &cobra.Command{
	Use:   "list-sessions",
	Short: "List game sessions",
	Long:  `Retrieve a list of game sessions for the user with a specified status.`,
	Run:   listSessions,
}
View Source
var LoginCmd = &cobra.Command{
	Use:   string(config.Login),
	Short: "Login to Zephyr using Discord",
	Long:  `Login to Zephyr using Discord's OAuth to authenticate and receive an access token.`,
	Run:   login,
}
View Source
var RestartGameCmd = &cobra.Command{
	Use:   string(config.RestartGame),
	Short: "Restart a game server",
	Long:  `Restart an existing game server session through the Zephyr server.`,
	Run:   restartGame,
}
View Source
var StopGameCmd = &cobra.Command{
	Use:   string(config.StopGame),
	Short: "Stop a game server",
	Long:  `Stop an existing game server session through the Zephyr server.`,
	Run:   stopGame,
}

Functions

This section is empty.

Types

type Config

type Config struct {
	AccessToken string `json:"access_token"`
	UserID      string `json:"user_id"`
	Username    string `json:"username"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL