Usage prints the help screen to STDOUT.
()
| 235 | |
| 236 | // Usage prints the help screen to STDOUT. |
| 237 | func (m *Main) Usage() { |
| 238 | fmt.Println(` |
| 239 | litestream is a tool for replicating SQLite databases. |
| 240 | |
| 241 | Usage: |
| 242 | |
| 243 | litestream <command> [arguments] |
| 244 | |
| 245 | The commands are: |
| 246 | |
| 247 | databases list databases specified in config file |
| 248 | info show daemon information |
| 249 | list list all managed databases |
| 250 | ltx list available LTX files for a database |
| 251 | register register a database for replication |
| 252 | replicate runs a server to replicate databases |
| 253 | reset reset local state for a database |
| 254 | restore recovers database backup from a replica |
| 255 | start start replication for a database |
| 256 | status display replication status for databases |
| 257 | stop stop replication for a database |
| 258 | sync force an immediate sync for a database |
| 259 | unregister unregister a database from replication |
| 260 | version prints the binary version |
| 261 | `[1:]) |
| 262 | } |
| 263 | |
| 264 | // Config represents a configuration file for the litestream daemon. |
| 265 | type Config struct { |
no outgoing calls