v0.12.0 migrate sqlite3 to psql18, updated auth, deploy docs, account and replay updates
test / test (push) Canceled after 0s
test / test (push) Canceled after 0s
This commit is contained in:
1 parent
5d2be4abb2
commit
d0326b059e
66 files changed
+4016
-2433
No files matched your search
@@ -57,6 +57,7 @@ type PlayerInfo struct {
|
||||
Level int `json:"level,omitempty"`
|
||||
SearchTime int `json:"searchTime,omitempty"`
|
||||
ClaimedBy string `json:"claimedBy,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
}
|
||||
|
||||
type MoveInfo struct {
|
||||
@@ -120,6 +121,7 @@ type HistoryMove struct {
|
||||
type GameSummary struct {
|
||||
GameID string `json:"gameId"`
|
||||
InitialFEN string `json:"initialFen"`
|
||||
FinalFEN string `json:"finalFen"`
|
||||
Result string `json:"result,omitempty"`
|
||||
StartTimeUTC time.Time `json:"startTimeUtc"`
|
||||
EndTimeUTC *time.Time `json:"endTimeUtc,omitempty"`
|
||||
|
||||
@@ -175,4 +175,4 @@ func setUserHandler(s *session.Session, args []string) error {
|
||||
fmt.Println("Note: This doesn't authenticate, just sets the ID for display")
|
||||
|
||||
return nil
|
||||
}
|
||||
}
|
||||
@@ -89,4 +89,4 @@ func rawRequestHandler(s *session.Session, args []string) error {
|
||||
|
||||
c := s.GetClient().(*api.Client)
|
||||
return c.RawRequest(method, path, body)
|
||||
}
|
||||
}
|
||||
@@ -16,4 +16,4 @@ func readPassword(prompt string) (string, error) {
|
||||
return "", err
|
||||
}
|
||||
return string(bytePassword), nil
|
||||
}
|
||||
}
|
||||
@@ -25,4 +25,4 @@ func readPassword(prompt string) (string, error) {
|
||||
return "", err
|
||||
}
|
||||
return "", fmt.Errorf("no input received")
|
||||
}
|
||||
}
|
||||
@@ -171,4 +171,4 @@ func exitHandler(s *session.Session, args []string) error {
|
||||
// Exit is handled in main loop, this is just for consistency
|
||||
display.Println(display.Cyan, "Goodbye!\n")
|
||||
return nil
|
||||
}
|
||||
}
|
||||
@@ -50,4 +50,4 @@ func ColorForTurn(turn string) string {
|
||||
return Blue + "White" + Reset
|
||||
}
|
||||
return Red + "Black" + Reset
|
||||
}
|
||||
}
|
||||
@@ -49,4 +49,4 @@ func (b *Builder) String() string {
|
||||
// Prompt returns a colored prompt string
|
||||
func Prompt(text string) string {
|
||||
return Yellow + text + Yellow + " > " + Reset
|
||||
}
|
||||
}
|
||||
@@ -13,4 +13,4 @@ func PrettyPrintJSON(v any) {
|
||||
return
|
||||
}
|
||||
fmt.Println(string(data))
|
||||
}
|
||||
}
|
||||
@@ -40,4 +40,4 @@ func (s *Session) SetGameState(game any) {
|
||||
}
|
||||
}
|
||||
func (s *Session) SetPlayerColor(color string) { s.PlayerColor = color }
|
||||
func (s *Session) GetPlayerColor() string { return s.PlayerColor }
|
||||
func (s *Session) GetPlayerColor() string { return s.PlayerColor }
|
||||
Reference in new issue
Block a user