hunk.code_window:         try {
               const fileContent = SubscriberCreateCommand.getTemplate(args.name as any);
               const filename = args.name + ".ts";
               let directory = args.dir as string;
               // if directory is not set then try to open tsconfig and find default path there
               if (!directory) {
                   try {
                       const connectionOptionsReader = new ConnectionOptionsReader({
  
hunk.labels: keep keep keep replace keep keep keep keep keep
hunk.after_edit:             let directory = args.dir as string | undefined;
  
hunk.file_path: src/commands/SubscriberCreateCommand.ts
hunk.type: replace
file: import {getMetadataArgsStorage} from "../";
  import {EntityRepositoryMetadataArgs} from "../metadata-args/EntityRepositoryMetadataArgs";
  import {EntitySchema} from "../entity-schema/EntitySchema";
  
  /**
   * Used to declare a class as a custom repository.
   * Custom repository can manage some specific entity or just be generic.
   * Custom repository optionally can extend AbstractRepository, Repository or TreeRepository.
   */
  export function EntityRepository(entity?: Function | EntitySchema<any>): ClassDecorator {
      return function (target: Function) {
  
          getMetadataArgsStorage().entityRepositories.push({
              target: target,
              entity: entity,
          } as EntityRepositoryMetadataArgs);
      };
  }
  