UNPKG

@relbns/github-cloner

Version:

Github Cloner is a CLI tool for cloning Github repositories with interactive lists in the terminal. the tool lists your repositories and sorts them by owners (users and organizations) and by name. choosing the repo will clone it to the current directory i

39 lines (35 loc) 881 B
export const sortingFields = { pushedAt: 'pushedAt', name: 'name' } export const sortingDirections = { ascending: 'ascending', descending: 'descending' } export const OwnerTypes = { User: 'User', Organization: 'Organization', } export const settings = { sorting: { field: 'sortingField', direction: 'sortingDirection' }, display: { pageSize: 'pageSize' } }; export const defaultSettings = { [settings.sorting.field]: sortingFields.name, [settings.sorting.direction]: sortingDirections.ascending, [settings.display.pageSize]: 8 }; export const pageSizeLimits = { min: 5, max: 15, default: defaultSettings[settings.display.pageSize] }; export const goBack = 'Go back'; export const exit = 'Exit'; export const settingsOption = 'Settings'; export const restoreDefault = '↺ Restore default';