()
| 6 | import { exit } from './main' |
| 7 | |
| 8 | export async function Test() { |
| 9 | console.log(nmConfig) |
| 10 | console.log(osInfo) |
| 11 | console.log(rcloneInfo) |
| 12 | |
| 13 | console.log(await rclone_api_post('/options/get')) |
| 14 | console.log(await rclone_api_post('/rc/list')) |
| 15 | |
| 16 | console.log((await getAvailablePorts(2))[1]) |
| 17 | |
| 18 | console.log(storageInfoList) |
| 19 | |
| 20 | exit(true) |
| 21 | |
| 22 | /* console.log(await rclone_api_post('/operations/publiclink',{ |
| 23 | fs: convertStoragePath('S3_new',undefined,undefined,undefined,true), |
| 24 | remote :convertStoragePath('S3_new','Package/HotPE-V2.7.240201.7z',undefined,true,false), |
| 25 | })); */ |
| 26 | |
| 27 | //console.log(await openlist_api_get('/api/me')); |
| 28 | //console.log(roConfig.env.path.homeDir); |
| 29 | |
| 30 | //console.log(storageInfoList); |
| 31 | |
| 32 | //await addOpenlistInRclone() |
| 33 | |
| 34 | //await restartOpenlist() |
| 35 | //await restartRclone() |
| 36 | //console.log(await getOpenlistToken()); |
| 37 | |
| 38 | /* let data = await invoke('read_config_file') as any; |
| 39 | console.log(data); |
| 40 | console.log(await invoke('write_config_file', { |
| 41 | configData: data |
| 42 | })); */ |
| 43 | |
| 44 | /* let taskids = (await rclone_api_post('/job/list')).jobids as Array<number> |
| 45 | taskids.forEach(async (taskid) => { |
| 46 | console.log(await rclone_api_post('/job/status', { |
| 47 | jobid: taskid |
| 48 | })); |
| 49 | }) */ |
| 50 | /* console.log(await rclone_api_post('/operations/copyurl',{ |
| 51 | remote:'/hpm-od/QQNT_VirtualHotBar_9.9.7.21453_QQNT.HPM', |
| 52 | fs:'Webdav:' |
| 53 | })); */ |
| 54 | |
| 55 | /* const aria2Test = new Aria2('https://down.hotpe.top/d/Package/HotPE-V2.7.240201.exe', |
| 56 | 'F:/', |
| 57 | 'test1.7z', |
| 58 | 8, (back) => { |
| 59 | console.log(back); |
| 60 | }) |
| 61 | |
| 62 | |
| 63 | |
| 64 | aria2Test.start() */ |
| 65 | //console.log(await runCmd('curl', [url,'-o', path])); |
nothing calls this directly
no test coverage detected