import { homedir } from 'os' import { join } from 'path' import type { GlobalCLIPluginConfig } from '../../types' const ONES_CONFIG_DIR_NAME = '.ones' const ONES_CONFIG_DIR_PATH = join(homedir(), ONES_CONFIG_DIR_NAME) const DEFAULT_LOGIN_URL = 'http://120.76.45.123' const GLOBAL_CLI_PLUGIN_CONFIG_FILE_NAME = 'cli-plugin.yaml' const GLOBAL_CLI_PLUGIN_CONFIG_FILE_PATH = join( ONES_CONFIG_DIR_PATH, GLOBAL_CLI_PLUGIN_CONFIG_FILE_NAME, ) const GLOBAL_CLI_PLUGIN_CONFIG_DEFAULT_CONTENT: Readonly = { scopes: { 'https://example.com': { baseURL: 'https://example.com', username: 'Example username', password: 'Example password', }, }, } export { ONES_CONFIG_DIR_NAME, ONES_CONFIG_DIR_PATH, GLOBAL_CLI_PLUGIN_CONFIG_FILE_NAME, GLOBAL_CLI_PLUGIN_CONFIG_FILE_PATH, GLOBAL_CLI_PLUGIN_CONFIG_DEFAULT_CONTENT, DEFAULT_LOGIN_URL, }