UNPKG

gitsu-cli

Version:

Interactive command line util for quickly & easily switching git users

10 lines (8 loc) 299 B
import { cosmiconfig } from 'cosmiconfig'; import { name } from '../../package.json'; export default async () => { const explorer = cosmiconfig('gitsu'); const result = await explorer.search(); if (!result) throw new Error('Failed to find ~/.gitsurc configuration file'); return result; };