add todo sync
This commit is contained in:
		| @@ -198,5 +198,22 @@ const silky = new Command('silky').description('silky registry').action(async (o | ||||
|   writeConfig({ ...config, baseURL: defaultRegistry[0] }); | ||||
|   showList(defaultRegistry); | ||||
| }); | ||||
| baseURL.addCommand(silky); | ||||
|  | ||||
| app.addCommand(silky); | ||||
| const xiongxiao = new Command('me').description('xiongxiao registry').action(async (opts) => { | ||||
|   console.log('xiongxiao registry'); | ||||
|   const config = getConfig(); | ||||
|   const defaultRegistry = ['https://kevisual.xiongxiao.me']; | ||||
|   writeConfig({ ...config, baseURL: defaultRegistry[0] }); | ||||
|   showList(defaultRegistry); | ||||
| }); | ||||
| baseURL.addCommand(xiongxiao); | ||||
|  | ||||
| const kv = new Command('kevisual').description('kevisual registry').action(async (opts) => { | ||||
|   console.log('kevisual registry'); | ||||
|   const config = getConfig(); | ||||
|   const defaultRegistry = ['https://kevisual.cn']; | ||||
|   writeConfig({ ...config, baseURL: defaultRegistry[0] }); | ||||
|   showList(defaultRegistry); | ||||
| }); | ||||
| baseURL.addCommand(kv); | ||||
|   | ||||
							
								
								
									
										15
									
								
								src/command/sync.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								src/command/sync.ts
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| import { program as app, Command } from '@/program.ts'; | ||||
|  | ||||
| const command = new Command('sync').description('同步项目').action(() => { | ||||
|   console.log('同步项目'); | ||||
| }); | ||||
| const syncUpload = new Command('upload').description('上传项目').action(() => { | ||||
|   console.log('上传项目'); | ||||
| }); | ||||
| const syncDownload = new Command('download').description('下载项目').action(() => { | ||||
|   console.log('下载项目'); | ||||
| }); | ||||
|  | ||||
| command.addCommand(syncUpload); | ||||
| command.addCommand(syncDownload); | ||||
| app.addCommand(command); | ||||
| @@ -8,6 +8,8 @@ import './command/npm.ts'; | ||||
| import './command/publish.ts'; | ||||
| import './command/init.ts'; | ||||
| import './command/proxy.ts'; | ||||
| import './command/sync.ts'; | ||||
|  | ||||
| import './command/app/index.ts'; | ||||
|  | ||||
| // program.parse(process.argv); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user