14 lines
379 B
TypeScript
14 lines
379 B
TypeScript
import { bashRunAndReturnSync } from "./bashUtils";
|
|
|
|
export const gitUserEmail = bashRunAndReturnSync({
|
|
command: 'git config user.email'
|
|
})
|
|
|
|
export const gitUserName = bashRunAndReturnSync({
|
|
command: 'git config user.name'
|
|
})
|
|
|
|
export const jjUserName = (userName = gitUserEmail) => {
|
|
const result = userName.replace(/@/g, '__').replace(/\./g, '-')
|
|
return result
|
|
} |