diff --git a/lib/Types/ErrorCallback.ts b/lib/ErrorCallback.ts similarity index 100% rename from lib/Types/ErrorCallback.ts rename to lib/ErrorCallback.ts diff --git a/lib/InteractiveOptions.ts b/lib/InteractiveOptions.ts deleted file mode 100644 index 789af42..0000000 --- a/lib/InteractiveOptions.ts +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright (C) Sapphirecode - All Rights Reserved - * This file is part of console-app which is released under MIT. - * See file 'LICENSE' for full license details. - * Created by Timo Hocker , May 2020 - */ - -import { Persistent } from '@sapphirecode/modelling'; -import { TypeValidation } from './Types/TypeValidation'; -import { PathType } from './Types/PathType'; -import { OptionType } from './OptionType'; -import { OptionSource } from './Sources/OptionSource'; -import { EnvSource } from './Sources/EnvSource'; -import { ArgSource } from './Sources/ArgSource'; -import { ConfigSource } from './Sources/ConfigSource'; -import { InteractiveSource } from './Sources/InteractiveSource'; -import { Option, OptionProcess } from './Option'; -import { ErrorCallback } from './Types/ErrorCallback'; - -const types: Record = { - string: new TypeValidation ('string'), - number: new TypeValidation ('number'), - boolean: new TypeValidation ('boolean'), - file: new PathType ('file'), - folder: new PathType ('folder'), - path: new PathType ('path'), - array: new TypeValidation ('array') -}; - -interface SourceConfig { - env?: boolean; - args?: boolean; - interactive?: boolean; - configs?: string[]; - exit_on_interrupt?: boolean; - error_callback?: ErrorCallback; -} - -export class InteractiveOptions extends Persistent { - protected options: Array; - protected quiet = false; - protected sources: OptionSource[] = []; - - public constructor ( - options: Array