@jswork/ushell-module-git 1.0.36 → 1.0.37

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,26 @@
1
+ #!/usr/bin/expect
2
+
3
+ # 设置超时时间(-1 表示无超时)
4
+ set timeout -1
5
+
6
+ spawn git add .
7
+
8
+ # 启动 aic2 命令
9
+ spawn aic2 --all -y
10
+
11
+ # 等待交互提示
12
+ expect {
13
+ "Pick a commit message to use:" {
14
+ # 模拟按下回车键选择默认选项
15
+ send "\r"
16
+ exp_continue
17
+ }
18
+ eof
19
+ }
20
+
21
+ # 在完成 aic2 后执行 git push
22
+ spawn git push
23
+
24
+ # 捕获 git push 的输出并结束脚本
25
+ expect eof
26
+
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.37",
4
4
  "description": "Unix like shell module for git.",
5
5
  "main": "index.sh",
6
6
  "repository": {