Skip to content

feat: 添加默认命令、全局选项与 auth 子命令#7

Draft
nemowang2003 wants to merge 3 commits intomainfrom
dev
Draft

feat: 添加默认命令、全局选项与 auth 子命令#7
nemowang2003 wants to merge 3 commits intomainfrom
dev

Conversation

@nemowang2003
Copy link
Owner

  • 支持使用 skland 直接启动 skland dashboard 命令。
    • skland --names name1,name2 应当等效于 skland dashboard --names name1,name2
    • (待探索) 在 skland 输入下增添 dashboard 相关补全。
  • 支持 --config-file--cache-dir 等选项变为全局选项。
    • skland --config-file /path/to/config 应当等效于 skland dashboard --config-file /path/to/config
    • 在 help 中为全局选项专门设置一块独立的 panel。
  • 使用 skland auth 子命令管理账号认证信息。
    • 使用 keyring 管理账号认证信息,在 keyring backend 不生效时才 fallback 到明文存储。
    • 将配置文件改为 toml 格式,并支持 per-user 的模块配置。

- 引入泛型基类 `InfrastBase` 统一 Presence/Roster/Audit 的数据结构,消除重复代码。
- 为 `InfrastBase` 增加迭代器功能,优化使用体验。
- 提取 `FacilityEnum` 枚举并以此展示样式
- 命令移至 `cli/commands`。
- 使用 `core.py` 接管命令构建。
  - 使用 mixin 与 builder 模式。
  - 支持 default command 与 global options。
- 部分逻辑待完善。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant