added --help functionality to import command

This commit is contained in:
Aster Fialla
2026-02-16 12:50:46 -05:00
parent 07d4e735eb
commit be5505b03c
2 changed files with 6 additions and 0 deletions

View File

@@ -17,6 +17,9 @@ ih.pluralKitImport = async function (authorId, attachmentUrl) {
if (!attachmentUrl) {
throw new Error(enums.err.NOT_JSON_FILE);
}
if (attachmentUrl === '--help') {
return enums.help.IMPORT;
}
return fetch(attachmentUrl).then((res) => res.json()).then(async(pkData) => {
const pkMembers = pkData.members;
const errors = [];