Skip to content

feat: Add Interactive Shell mode for pikpakcli#59

Open
BradleyBao wants to merge 4 commits into52funny:masterfrom
BradleyBao:feature/my-feature
Open

feat: Add Interactive Shell mode for pikpakcli#59
BradleyBao wants to merge 4 commits 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)值可能会在不同命令之间保留。将会导致特定命令的输出内容永远一致。

@BradleyBao
Copy link
Author

实现了cd功能,适配了 ls 实时获取了当前目录。(其他指令还没有测试)
还有很多指令比如说 new 需要适配 shell 因为其都是使用绝对路径的。

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