@@ -4,7 +4,7 @@ import githubFs from './githubFs';
44
55const prompt = acode . require ( 'prompt' ) ;
66const confirm = acode . require ( 'confirm' ) ;
7- const pallete = acode . require ( 'pallete' ) ;
7+ const palette = acode . require ( 'pallete' ) ;
88const helpers = acode . require ( 'helpers' ) ;
99const multiPrompt = acode . require ( 'multiPrompt' ) ;
1010const openFolder = acode . require ( 'openFolder' ) ;
@@ -61,7 +61,7 @@ class AcodePlugin {
6161 async openRepo ( ) {
6262 await this . initFs ( ) ;
6363 this . token = await this . getToken ( ) ;
64- pallete (
64+ palette (
6565 this . listRepositories . bind ( this ) ,
6666 this . selectBranch . bind ( this ) ,
6767 'Type to search repository' ,
@@ -70,7 +70,7 @@ class AcodePlugin {
7070
7171 async selectBranch ( repo ) {
7272 const [ user , repoName ] = repo . split ( '/' ) ;
73- pallete (
73+ palette (
7474 this . listBranches . bind ( this , user , repoName ) ,
7575 ( branch ) => this . openRepoAsFolder ( user , repoName , branch )
7676 . catch ( helpers . error ) ,
@@ -81,7 +81,7 @@ class AcodePlugin {
8181 async deleteGist ( ) {
8282 await this . initFs ( ) ;
8383 const gist = await new Promise ( ( resolve ) => {
84- pallete (
84+ palette (
8585 this . listGists . bind ( this , false ) ,
8686 resolve ,
8787 'Type to search gist' ,
@@ -100,15 +100,15 @@ class AcodePlugin {
100100 async deleteGistFile ( ) {
101101 await this . initFs ( ) ;
102102 const gist = await new Promise ( ( resolve ) => {
103- pallete (
103+ palette (
104104 this . listGists . bind ( this , false ) ,
105105 resolve ,
106106 'Type to search gist' ,
107107 ) ;
108108 } ) ;
109109
110110 const file = await new Promise ( ( resolve ) => {
111- pallete (
111+ palette (
112112 this . listGistFiles . bind ( this , gist , false ) ,
113113 resolve ,
114114 'Type to search file' ,
@@ -172,7 +172,7 @@ class AcodePlugin {
172172 await this . initFs ( ) ;
173173 this . token = await this . getToken ( ) ;
174174
175- pallete (
175+ palette (
176176 this . listGists . bind ( this ) ,
177177 this . openGistFile . bind ( this ) ,
178178 'Type to search gist' ,
@@ -235,7 +235,7 @@ class AcodePlugin {
235235 helpers . removeTitleLoader ( ) ;
236236 } else {
237237 await new Promise ( ( resolve ) => {
238- pallete (
238+ palette (
239239 this . listGistFiles . bind ( this , gist ) ,
240240 async ( file ) => {
241241 if ( file === this . NEW ) {
0 commit comments