@@ -16,17 +16,17 @@ There are three major functions: `initGit, clone, commitAndSync`, but you may im
1616
1717``` ts
1818import {
19- initGit ,
20- clone ,
21- commitAndSync ,
2219 AssumeSyncError ,
2320 CantSyncGitNotInitializedError ,
2421 CantSyncInSpecialGitStateAutoFixFailed ,
22+ clone ,
23+ commitAndSync ,
2524 getModifiedFileList ,
2625 getRemoteUrl ,
2726 GitPullPushError ,
2827 GitStep ,
2928 ILoggerContext ,
29+ initGit ,
3030 ModifiedFileList ,
3131 SyncParameterMissingError ,
3232 SyncScriptIsInDeadLoopError ,
4949 syncImmediately: isSyncedWiki ,
5050 userInfo: { ... defaultGitInfo , ... userInfo },
5151 logger: {
52- log : (message : string , context : ILoggerContext ): unknown =>
53- logger .info (message , { callerFunction: ' initWikiGit' , ... context }),
54- warn : (message : string , context : ILoggerContext ): unknown =>
55- logger .warn (message , { callerFunction: ' initWikiGit' , ... context }),
52+ log : (message : string , context : ILoggerContext ): unknown => logger .info (message , { callerFunction: ' initWikiGit' , ... context }),
53+ warn : (message : string , context : ILoggerContext ): unknown => logger .warn (message , { callerFunction: ' initWikiGit' , ... context }),
5654 info : (message : GitStep , context : ILoggerContext ): void => {
5755 logger .notice (this .translateMessage (message ), {
5856 handler: WikiChannel .syncProgress ,
7876 remoteUrl ,
7977 userInfo: { ... defaultGitInfo , ... userInfo },
8078 logger: {
81- log : (message : string , context : ILoggerContext ): unknown =>
82- logger .info (message , { callerFunction: ' commitAndSync' , ... context }),
83- warn : (message : string , context : ILoggerContext ): unknown =>
84- logger .warn (message , { callerFunction: ' commitAndSync' , ... context }),
79+ log : (message : string , context : ILoggerContext ): unknown => logger .info (message , { callerFunction: ' commitAndSync' , ... context }),
80+ warn : (message : string , context : ILoggerContext ): unknown => logger .warn (message , { callerFunction: ' commitAndSync' , ... context }),
8581 info : (message : GitStep , context : ILoggerContext ): void => {
8682 logger .notice (this .translateMessage (message ), {
8783 handler: WikiChannel .syncProgress ,
@@ -108,10 +104,8 @@ try {
108104 remoteUrl ,
109105 userInfo: { ... defaultGitInfo , ... userInfo },
110106 logger: {
111- log : (message : string , context : ILoggerContext ): unknown =>
112- logger .info (message , { callerFunction: ' clone' , ... context }),
113- warn : (message : string , context : ILoggerContext ): unknown =>
114- logger .warn (message , { callerFunction: ' clone' , ... context }),
107+ log : (message : string , context : ILoggerContext ): unknown => logger .info (message , { callerFunction: ' clone' , ... context }),
108+ warn : (message : string , context : ILoggerContext ): unknown => logger .warn (message , { callerFunction: ' clone' , ... context }),
115109 info : (message : GitStep , context : ILoggerContext ): void => {
116110 logger .notice (this .translateMessage (message ), {
117111 handler: WikiChannel .syncProgress ,
0 commit comments