@@ -27,9 +27,9 @@ export const status = async (showRes = true): Promise<IGitResult> => {
27
27
console . log ( '[faiz:] === git status' , res )
28
28
if ( showRes ) {
29
29
if ( res . exitCode === 0 ) {
30
- logseq . App . showMsg ( 'Git status success' )
30
+ logseq . UI . showMsg ( 'Git status success' )
31
31
} else {
32
- logseq . App . showMsg ( `Git status failed\n${ res . stderr } ` , 'error' )
32
+ logseq . UI . showMsg ( `Git status failed\n${ res . stderr } ` , 'error' )
33
33
}
34
34
}
35
35
/**
@@ -60,9 +60,9 @@ export const log = async (showRes = true): Promise<IGitResult> => {
60
60
console . log ( '[faiz:] === git log' , res )
61
61
if ( showRes ) {
62
62
if ( res . exitCode === 0 ) {
63
- logseq . App . showMsg ( 'Git log success' )
63
+ logseq . UI . showMsg ( 'Git log success' )
64
64
} else {
65
- logseq . App . showMsg ( `Git log failed\n${ res . stderr } ` , 'error' )
65
+ logseq . UI . showMsg ( `Git log failed\n${ res . stderr } ` , 'error' )
66
66
}
67
67
}
68
68
return res
@@ -74,9 +74,9 @@ export const pull = async (showRes = true): Promise<IGitResult> => {
74
74
console . log ( '[faiz:] === git pull' , res )
75
75
if ( showRes ) {
76
76
if ( res . exitCode === 0 ) {
77
- logseq . App . showMsg ( 'Git pull success' )
77
+ logseq . UI . showMsg ( 'Git pull success' )
78
78
} else {
79
- logseq . App . showMsg ( `Git pull failed\n${ res . stderr } ` , 'error' )
79
+ logseq . UI . showMsg ( `Git pull failed\n${ res . stderr } ` , 'error' )
80
80
}
81
81
}
82
82
return res
@@ -88,9 +88,9 @@ export const pullRebase = async (showRes = true): Promise<IGitResult> => {
88
88
console . log ( '[faiz:] === git pull --rebase' , res )
89
89
if ( showRes ) {
90
90
if ( res . exitCode === 0 ) {
91
- logseq . App . showMsg ( 'Git pull --rebase success' )
91
+ logseq . UI . showMsg ( 'Git pull --rebase success' )
92
92
} else {
93
- logseq . App . showMsg ( `Git pull --rebase failed\n${ res . stderr } ` , 'error' )
93
+ logseq . UI . showMsg ( `Git pull --rebase failed\n${ res . stderr } ` , 'error' )
94
94
}
95
95
}
96
96
return res
@@ -102,9 +102,9 @@ export const checkout = async (showRes = true): Promise<IGitResult> => {
102
102
console . log ( '[faiz:] === git checkout .' , res )
103
103
if ( showRes ) {
104
104
if ( res . exitCode === 0 ) {
105
- logseq . App . showMsg ( 'Git checkout success' )
105
+ logseq . UI . showMsg ( 'Git checkout success' )
106
106
} else {
107
- logseq . App . showMsg ( `Git checkout failed\n${ res . stderr } ` , 'error' )
107
+ logseq . UI . showMsg ( `Git checkout failed\n${ res . stderr } ` , 'error' )
108
108
}
109
109
}
110
110
return res
@@ -118,9 +118,9 @@ export const commit = async (showRes = true, message: string): Promise<IGitResul
118
118
console . log ( '[faiz:] === git commit' , res )
119
119
if ( showRes ) {
120
120
if ( res . exitCode === 0 ) {
121
- logseq . App . showMsg ( 'Git commit success' )
121
+ logseq . UI . showMsg ( 'Git commit success' )
122
122
} else {
123
- logseq . App . showMsg ( `Git commit failed\n${ res . stdout || res . stderr } ` , 'error' )
123
+ logseq . UI . showMsg ( `Git commit failed\n${ res . stdout || res . stderr } ` , 'error' )
124
124
}
125
125
}
126
126
return res
@@ -133,9 +133,9 @@ export const push = async (showRes = true): Promise<IGitResult> => {
133
133
console . log ( '[faiz:] === git push' , res )
134
134
if ( showRes ) {
135
135
if ( res . exitCode === 0 ) {
136
- logseq . App . showMsg ( 'Git push success' )
136
+ logseq . UI . showMsg ( 'Git push success' )
137
137
} else {
138
- logseq . App . showMsg ( `Git push failed\n${ res . stderr } ` , 'error' )
138
+ logseq . UI . showMsg ( `Git push failed\n${ res . stderr } ` , 'error' )
139
139
}
140
140
}
141
141
return res
0 commit comments