@hankei6km/reposition
Version:
`reposition` is a command line tool to send a repository list to Notion database.
21 lines (20 loc) • 539 B
JavaScript
import { reposition, Client } from './index.js';
export const cli = async ({ apiKey, databaseId, filterTimeRange, workersNum, stdin, stdout, stderr }) => {
try {
const client = new Client({ auth: apiKey });
await reposition({
client,
databaseId,
filterTimeRange,
workersNum,
input: stdin,
output: stdout
});
}
catch (err) {
stderr.write(err.toString());
stderr.write('\n');
return 1;
}
return 0;
};