add user
Closed this issue · 2 comments
echosoar commented
if user already exists url, also need set git config
echosoar commented
switch (type) {
case 'add':
const matchUrl = yield enquirer.input({
message: 'Please input matching url/rule',
initial: defaultValue,
});
const exists = user.matches.find((match) => match === matchUrl);
if (!exists) {
user.matches.push(matchUrl);
}
break;
}
echosoar commented
fix: v0.0.14