refactor(rebrand): полный ребрендинг в Tachyon и перенос служб watchdog/doctor на Ucode
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { execSync } from 'child_process';
|
||||
|
||||
export function getGitUser(defaultName = 'Tachyon', defaultEmail = 'dushnilin@gmail.com') {
|
||||
try {
|
||||
const name = execSync('git config user.name', { stdio: ['ignore', 'pipe', 'ignore'] }).toString().trim();
|
||||
const email = execSync('git config user.email', { stdio: ['ignore', 'pipe', 'ignore'] }).toString().trim();
|
||||
|
||||
if (name) {
|
||||
return { name, email: email || defaultEmail };
|
||||
}
|
||||
} catch (error) {
|
||||
// Fall through
|
||||
}
|
||||
|
||||
return {
|
||||
name: defaultName,
|
||||
email: defaultEmail,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user