Skip to main content

Module cli

Module cli 

Source
Expand description

The server’s commands, as the open-chess program runs them (the open-chess crate; built with its server feature):

open-chess serve the Lichess-compatible API open-chess analyse the fair-play worker (needs Stockfish) open-chess migrate create or update the chess schema, then exit open-chess bot create –name esl-stockfish-1800 a bot account and its token open-chess healthcheck for container health checks

Enums§

BotCmd
Cmd
The server’s commands.
PhotosCmd

Functions§

configured
Whether the environment configures a server (DATABASE_URL is set): open-chess with no command serves then.
run
Run a server command; None serves, configured from the environment.