<commit_before>#!/usr/bin/env node
'use strict';
var meow = require('meow');
var sysinternals = require('./');

var cli = meow({
	help: [
		'Usage',
		'  $ sysinternals <command> [parameters]',
		'',
		'Examples of usage',
		'  $ sysinternals -f "remote file"',
		'  Found: PsFile v2.11',
		'  Updated: May 2, 2014',
		'  Installed: Yes (cmd: psfile)',
		'',
		'  $ sysinternals -l --installed ',
		'  Prints all installed utilities',
		'',
		'Commands',
		'  -f, --find "keywords separated by space" Finds tool by keywords, displays useful information.',
		'  -l, --list --(installed, not-installed)  Lists Sysinternal utilities. Default: displays all existing',
	]
});

console.log(sysinternals(cli.input[0] || 'unicorns'));<commit_msg>Added CLI commands definitions and routes<commit_after>#!/usr/bin/env node

'use strict';
var meow = require('meow');
var sysinternals = require('./');

var cli = meow({
	help: [
		'Usage',
		'  $ sysinternals <command> [parameters]',
		'',
		'Examples of usage',
		'  $ sysinternals -f "remote file"',
		'  Found: PsFile v2.11',
		'  Updated: May 2, 2014',
		'  Installed: Yes (cmd: psfile)',
		'',
		'  $ sysinternals -l --installed ',
		'  Prints all installed utilities',
		'',
		'Commands',
		'  -f, --find    Finds tool by keywords, displays useful information.',
		'  -l, --list    Lists all Sysinternal utilities with details (version, description, local install path).',
	]
}, {
	boolean: [
		'list'
	],
	string: [
		'find'
	],
	alias: {
		l: 'list',
		f: 'find'
	}
});

if (cli.flags.find.length) {
	sysinternals.find(cli.flags.find);
} else if (cli.flags.list) {
	sysinternals.list();
} else {
	cli.showHelp();
}
{'fraction_non_alphanumeric': 0.18181818181818182, 'fraction_numerical': 0.010234798314268514, 'mean_word_length': 3.3852242744063323, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1701821', 'n_tokens_mistral': 664, 'n_tokens_neox': 600, 'n_words': 158}