From f59545d97a80bf06025bf6343a80d834c7eb237f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 6 Jul 2021 10:22:37 +0200 Subject: [PATCH] Rename command files --- shared/extra-utils/bulk/{bulk.ts => bulk-command.ts} | 2 +- shared/extra-utils/bulk/index.ts | 2 +- shared/extra-utils/cli/{cli.ts => cli-command.ts} | 0 shared/extra-utils/cli/index.ts | 2 +- .../custom-pages/{custom-pages.ts => custom-pages-command.ts} | 2 +- shared/extra-utils/custom-pages/index.ts | 2 +- shared/extra-utils/feeds/{feeds.ts => feeds-command.ts} | 2 +- shared/extra-utils/feeds/index.ts | 2 +- shared/extra-utils/index.ts | 2 +- shared/extra-utils/shared/abstract-command.ts | 2 +- 10 files changed, 9 insertions(+), 9 deletions(-) rename shared/extra-utils/bulk/{bulk.ts => bulk-command.ts} (87%) rename shared/extra-utils/cli/{cli.ts => cli-command.ts} (100%) rename shared/extra-utils/custom-pages/{custom-pages.ts => custom-pages-command.ts} (90%) rename shared/extra-utils/feeds/{feeds.ts => feeds-command.ts} (91%) diff --git a/shared/extra-utils/bulk/bulk.ts b/shared/extra-utils/bulk/bulk-command.ts similarity index 87% rename from shared/extra-utils/bulk/bulk.ts rename to shared/extra-utils/bulk/bulk-command.ts index a58fb3fbb..fcbf04164 100644 --- a/shared/extra-utils/bulk/bulk.ts +++ b/shared/extra-utils/bulk/bulk-command.ts @@ -1,6 +1,6 @@ import { BulkRemoveCommentsOfBody } from '@shared/models/bulk/bulk-remove-comments-of-body.model' -import { HttpStatusCode } from '../../../shared/core-utils/miscs/http-error-codes' +import { HttpStatusCode } from '../../core-utils/miscs/http-error-codes' import { AbstractCommand, OverrideCommandOptions } from '../shared' export class BulkCommand extends AbstractCommand { diff --git a/shared/extra-utils/bulk/index.ts b/shared/extra-utils/bulk/index.ts index 5d2f9d3ad..391597243 100644 --- a/shared/extra-utils/bulk/index.ts +++ b/shared/extra-utils/bulk/index.ts @@ -1 +1 @@ -export * from './bulk' +export * from './bulk-command' diff --git a/shared/extra-utils/cli/cli.ts b/shared/extra-utils/cli/cli-command.ts similarity index 100% rename from shared/extra-utils/cli/cli.ts rename to shared/extra-utils/cli/cli-command.ts diff --git a/shared/extra-utils/cli/index.ts b/shared/extra-utils/cli/index.ts index 8a3f31e2f..91b5abfbe 100644 --- a/shared/extra-utils/cli/index.ts +++ b/shared/extra-utils/cli/index.ts @@ -1 +1 @@ -export * from './cli' +export * from './cli-command' diff --git a/shared/extra-utils/custom-pages/custom-pages.ts b/shared/extra-utils/custom-pages/custom-pages-command.ts similarity index 90% rename from shared/extra-utils/custom-pages/custom-pages.ts rename to shared/extra-utils/custom-pages/custom-pages-command.ts index 56dabdc0f..a062c9774 100644 --- a/shared/extra-utils/custom-pages/custom-pages.ts +++ b/shared/extra-utils/custom-pages/custom-pages-command.ts @@ -1,5 +1,5 @@ import { CustomPage } from '@shared/models' -import { HttpStatusCode } from '../../../shared/core-utils/miscs/http-error-codes' +import { HttpStatusCode } from '../../core-utils/miscs/http-error-codes' import { AbstractCommand, OverrideCommandOptions } from '../shared' export class CustomPagesCommand extends AbstractCommand { diff --git a/shared/extra-utils/custom-pages/index.ts b/shared/extra-utils/custom-pages/index.ts index 5e70778f8..58aed04f2 100644 --- a/shared/extra-utils/custom-pages/index.ts +++ b/shared/extra-utils/custom-pages/index.ts @@ -1 +1 @@ -export * from './custom-pages' +export * from './custom-pages-command' diff --git a/shared/extra-utils/feeds/feeds.ts b/shared/extra-utils/feeds/feeds-command.ts similarity index 91% rename from shared/extra-utils/feeds/feeds.ts rename to shared/extra-utils/feeds/feeds-command.ts index 012ce6cfe..8031adf92 100644 --- a/shared/extra-utils/feeds/feeds.ts +++ b/shared/extra-utils/feeds/feeds-command.ts @@ -1,5 +1,5 @@ -import { HttpStatusCode } from '../../../shared/core-utils/miscs/http-error-codes' +import { HttpStatusCode } from '../../core-utils/miscs/http-error-codes' import { AbstractCommand, OverrideCommandOptions } from '../shared' type FeedType = 'videos' | 'video-comments' | 'subscriptions' diff --git a/shared/extra-utils/feeds/index.ts b/shared/extra-utils/feeds/index.ts index 4634cb163..662a22b6f 100644 --- a/shared/extra-utils/feeds/index.ts +++ b/shared/extra-utils/feeds/index.ts @@ -1 +1 @@ -export * from './feeds' +export * from './feeds-command' diff --git a/shared/extra-utils/index.ts b/shared/extra-utils/index.ts index 10781d049..c4f0afdc4 100644 --- a/shared/extra-utils/index.ts +++ b/shared/extra-utils/index.ts @@ -4,7 +4,7 @@ export * from './cli' export * from './custom-pages' -export * from './feeds/feeds' +export * from './feeds' export * from './mock-servers/mock-instances-index' diff --git a/shared/extra-utils/shared/abstract-command.ts b/shared/extra-utils/shared/abstract-command.ts index 53c644124..7f812daa8 100644 --- a/shared/extra-utils/shared/abstract-command.ts +++ b/shared/extra-utils/shared/abstract-command.ts @@ -1,5 +1,5 @@ import { HttpStatusCode } from '@shared/core-utils' -import { makeGetRequest, makePostBodyRequest, makePutBodyRequest, unwrap, unwrapBody, unwrapText } from '../requests/requests' +import { makeGetRequest, makePostBodyRequest, makePutBodyRequest, unwrapBody, unwrapText } from '../requests/requests' import { ServerInfo } from '../server/servers' export interface OverrideCommandOptions { -- 2.41.0