Skip to content

feat: Add Interactive Shell mode for pikpakcli#59

Open
BradleyBao wants to merge 1 commit into52funny:masterfrom
BradleyBao:feature/my-feature
Open

feat: Add Interactive Shell mode for pikpakcli#59
BradleyBao wants to merge 1 commit into52funny:masterfrom
BradleyBao:feature/my-feature

Conversation

@BradleyBao
Copy link

描述

支持交互式shell。

更改

  • 新增: internal/shell/
  • 更改: main.go - 如果有arg则直接调用命令,若没有则进入交互式shell
  • 更改: cmd/root.go - 增加 ExecuteShell
  • 依赖: github.com/chzyer/readline

限制

已知问题:由于命令实现中在包级别进行存储,标志(flag)值可能会在不同命令之间保留。将会导致特定命令的输出内容永远一致。

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