improve prompting in moon phase plugin when running helper functions

未关闭 适合新手
#144 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
75/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
停滞
技术栈
python
领域
cli

调研方向

在 PaperPi 代码库中找到月相插件,并找出当前显示时区列表但未说明需要输入内容的 locale 辅助函数。更新提示,明确要求输入两位字母的国家代码。运行辅助函数,查看改进后的消息,以验证此次更改。

由索引模型根据 Issue 内容生成。

描述

enhancement

Is your feature request related to a problem? Please describe.
The locale function for the moon phase plugin expects input, but it isn't clear:


==.....list_country_locales.....==

    Print the timezones for a country using the 2-letter ISO country code

    This plugin uses a "timezone locale" to calculate the moon rise and moon set values.
    Timezone locales are fomatted as 'landmass/city'. If you are not familiar with your
    locale, use this tool to find the name. Enter the two-letter code for a country to
    list all of the locales:

    Example for Brazil:
        Timezone Locales for BR

        America/Noronha       America/Bahia         America/Boa_Vista
        America/Belem         America/Sao_Paulo     America/Manaus
        America/Fortaleza     America/Campo_Grande  America/Eirunepe
        America/Recife        America/Cuiaba        America/Rio_Branco
        America/Araguaina     America/Santarem
        America/Maceio        America/Porto_Velho


___________________________________________________________________________
NL # input is expected here, but that's not obvious```

**Describe the solution you'd like**
Improve the prompt to include something like "enter the a letter country code"
主要语言
Python
星标
205
派生
18
平均合并
3 小时 49 分钟
30 天内合并 PR
89

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

txoof/PaperPi 的其他 Issue

查看 txoof/PaperPi 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。