zen-gitsync 2.1.9 → 2.1.11
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/README.md +6 -0
- package/package.json +3 -1
- package/src/gitCommit.js +83 -1
- package/src/ui/public/assets/index-2zWLRJg9.css +1 -1
- package/src/ui/public/assets/index-BKaSsEOq.js +22 -22
- package/src/ui/public/assets/vendor-Dp0FkvMe.css +1 -1
- package/src/ui/public/assets/vendor-lzd7uK7e.js +45 -45
- package/src/ui/public/index.html +16 -16
- package/src/ui/server/index.js +1669 -1669
- package/src/utils/index.js +8 -0
package/src/utils/index.js
CHANGED
|
@@ -303,7 +303,15 @@ Options:
|
|
|
303
303
|
addResetScript Add "g:reset": "git reset --hard origin/<current-branch>" to package.json scripts
|
|
304
304
|
ui Launch graphical user interface (v2.0.0)
|
|
305
305
|
|
|
306
|
+
--cmd="your-cmd" Execute custom cmd command (immediately, at a time, or periodically)
|
|
307
|
+
--cmd-interval=<seconds> Execute custom cmd every N seconds
|
|
308
|
+
--at="HH:MM" Execute custom cmd at a specific time (today) or --at="YYYY-MM-DD HH:MM:SS"
|
|
309
|
+
|
|
306
310
|
Example:
|
|
311
|
+
g --cmd="echo hello" --cmd-interval=5 # 每5秒执行一次echo hello
|
|
312
|
+
g --cmd="echo at-time" --at=23:59 # 在23:59执行一次echo at-time
|
|
313
|
+
g --cmd="echo now" # 立即执行一次echo now
|
|
314
|
+
g --cmd="echo hi" --cmd-interval=10 --interval=60 # cmd和git自动提交并行
|
|
307
315
|
g -m "Initial commit" Commit with a custom message
|
|
308
316
|
g -m=Fix-bug Commit with a custom message (no spaces around '=')
|
|
309
317
|
g -y Auto commit with the default message
|