<commit_before>
require('dotenv').config();

const vorpal = require('vorpal')();
const importer = require('./src/modules/importer');

vorpal
    .command('import', 'Launch the import script')
    .action(function(args, next) {
        importer.run(
            process.env.WP_JSON_ENDPOINT,
            process.env.WP_USER,
            process.env.WP_PASSWORD
        );
        next();
    });

vorpal
    .delimiter('WPimport')
    .show();<commit_msg>[master] Add start and nb argument to cli<commit_after>
require('dotenv').config();

const vorpal    = require('vorpal')();
const importer  = require('./src/modules/importer');

vorpal
    .command('import', 'Launch the import script')
    .action(function(args, next) {
        importer.auth(
            process.env.WP_JSON_ENDPOINT,
            process.env.WP_USER,
            process.env.WP_PASSWORD
        );
        importer.run( args.start || 0, args.nb || 1);
        next();
    });

vorpal
    .delimiter('WPimport')
    .show();
{'fraction_non_alphanumeric': 0.15376884422110554, 'fraction_numerical': 0.0020100502512562816, 'mean_word_length': 2.507042253521127, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1383111', 'n_tokens_mistral': 313, 'n_tokens_neox': 309, 'n_words': 59}