@jswork/ushell-module-git 1.0.36 → 1.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.sh CHANGED
@@ -70,7 +70,7 @@ alias gk='gitk --all&'
70
70
  alias gx='gitx --all'
71
71
  alias gg="${ROOT_PATH}/modules/05-quick-commit.sh"
72
72
  alias ggg='gaa && gcm "wip" && gp'
73
- alias ggi='aic2 --all -y && git push'
73
+ alias ggi="${ROOT_PATH}/modules/12-ggi.sh"
74
74
 
75
75
  ## git tags:
76
76
  alias gcd=". ${ROOT_PATH}/modules/01-gcd.sh"
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/expect
2
+
3
+ # 设置超时时间(-1 表示无超时)
4
+ set timeout -1
5
+
6
+ # 禁用日志输出
7
+ # log_user 0
8
+
9
+ spawn git add .
10
+
11
+ # 启动 aic2 命令
12
+ spawn aic2 --all -y
13
+
14
+ # 等待交互提示
15
+ expect {
16
+ "Pick a commit message to use:" {
17
+ # 模拟按下回车键选择默认选项
18
+ send "\r"
19
+ exp_continue
20
+ }
21
+ eof
22
+ }
23
+
24
+ # 在完成 aic2 后执行 git push
25
+ spawn git push
26
+
27
+ # 捕获 git push 的输出并结束脚本
28
+ expect eof
29
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jswork/ushell-module-git",
3
- "version": "1.0.36",
3
+ "version": "1.0.38",
4
4
  "description": "Unix like shell module for git.",
5
5
  "main": "index.sh",
6
6
  "repository": {