0x46616c6b/etherpad-lite-console

此包已被废弃,不再维护。未建议替代包。

用于维护 etherpad lite 实例的轻量级控制台工具包

v0.2.0 2019-11-23 13:09 UTC

README

Continuous Integration Latest Stable Version License Scrutinizer Quality Score

用于维护 etherpad lite 实例的轻量级控制台工具包

安装

git clone https://github.com/0x46616c6b/etherpad-lite-console.git

cd etherpad-lite-console

composer install

./bin/console

示例输出

Etherpad Lite Console version 0.1

Usage:
  [options] command [arguments]

Options:
  --help           -h Display this help message.
  --quiet          -q Do not output any message.
  --verbose        -v|vv|vvv Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  --version        -V Display this application version.
  --ansi              Force ANSI output.
  --no-ansi           Disable ANSI output.
  --no-interaction -n Do not ask any interactive question.

Available commands:
  help                  Displays help for a command
  list                  Lists commands
pad
  pad:delete            Delete a pad
  pad:purge             Purge pads which older then x days
redis
  redis:import:sqlite   Imports a sqlite database to redis

当前功能

  • 删除垫子
  • 清除旧垫子(避免大量数据保留
    • 通过垫子ID的后缀来黑白名单垫子
  • 迁移
    • 从 SQLite 迁移到 Redis

通过后缀清除垫子

垫子ID的后缀可用于可变生存期。例如,要在一天后清除具有后缀 '-1day' 的垫子,在365天后清除具有后缀 '-1year' 的垫子,以及在60天后清除所有其他垫子,请执行以下操作

./bin/console pad:purge --days=1 --suffix=-1day
./bin/console pad:purge --days=365 --suffix=-1year
./bin/console pad:purge --days=60 --ignore-suffix=-1day --ignore-suffix=-1year

实现

愿望清单

  • 更多迁移(MySQL -> Redis,...)
  • 统计数据,统计数据,统计数据