Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | 16x 16x 9x 16x 1x 1x 16x 16x 1x 16x 16x | import { LoggerConfig, StringLoggerConfig, TextFunction } from '../interfaces/interfaces'
export const LOAD_CONFIG: StringLoggerConfig = {
start: 'Downloading local storage file',
success: 'localstore.json file downloaded successfully!',
fail: 'Error downloading localstore.json',
}
export const DOWNLOAD_ZIP: LoggerConfig<TextFunction, string> = {
start: 'Downloading binary...',
success: downloadPath => `Successfully downloaded to "${downloadPath}.zip"`,
fail: 'Failed to download binary',
}
export const EXTRACT_ZIP: LoggerConfig<TextFunction, TextFunction> = {
start: 'Extracting binary...',
success: downloadPath => `Successfully extracted to "${downloadPath}"`,
fail: error => `Failed to extract binary ${error}`,
}
export const DELETE_ZIP: StringLoggerConfig = {
start: 'Deleting zip...',
success: 'Successfully deleted zip file',
fail: 'Failed to delete zip file',
}
export const READ_CONFIG: LoggerConfig<string, TextFunction> = {
start: 'Reading local storage file from filesystem',
success: 'Successfully loaded localstore.json from filesystem',
fail: reason => `Error loading localstore.json from filesystem: ${reason}`,
}
export const RESOLVE_VERSION: StringLoggerConfig = {
start: 'Resolving version to branch position...',
success: 'Version resolved!',
fail: 'Error resolving version!',
}
export const SEARCH_BINARY: StringLoggerConfig = {
start: 'Searching for binary...',
success: 'Binary found.',
fail: 'No binary found!',
}
|