Skip to content

自动识别用户还是组织 #14

@bestony

Description

@bestony

目前采用的是两个不同的命令。
后续可以使用同一个命令分析。

此外,需要为二者添加不同的判断,当 organ 子命令的参数是用户时,提示错误。

需要进行的步骤

  1. 使用 request 来读取 github.com/{name},根据页面内容判断是用户还是组织 (此部分建议放在 helper 中实现)
  2. 返回 true or false
  3. 各子命令调用,提醒用户输入错误, 然后切换到另外的命令上去请求。

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions