mirror of
https://github.com/immich-app/immich.git
synced 2025-11-17 19:02:36 +09:00
chore: tree shake unused API methods from CLI (#6973)
This commit is contained in:
@@ -2,10 +2,10 @@ import { BaseCommand } from './base-command';
|
||||
|
||||
export class ServerInfoCommand extends BaseCommand {
|
||||
public async run() {
|
||||
await this.connect();
|
||||
const versionInfo = await this.immichApi.serverInfoApi.getServerVersion();
|
||||
const mediaTypes = await this.immichApi.serverInfoApi.getSupportedMediaTypes();
|
||||
const statistics = await this.immichApi.assetApi.getAssetStatistics();
|
||||
const api = await this.connect();
|
||||
const versionInfo = await api.getServerVersion();
|
||||
const mediaTypes = await api.getSupportedMediaTypes();
|
||||
const statistics = await api.getAssetStatistics();
|
||||
|
||||
console.log(`Server Version: ${versionInfo.major}.${versionInfo.minor}.${versionInfo.patch}`);
|
||||
console.log(`Image Types: ${mediaTypes.image.map((extension) => extension.replace('.', ''))}`);
|
||||
|
||||
Reference in New Issue
Block a user