#!/usr/bin/env node 'use strict'; /* _, ,--. ,---. * /(_ ,---. `--' / .-' * | '-._ . ' . ( .-' ,--. | `-, * \ ,-.) -= * =- .-' `) | | | .-' * \((` .( '/. ' `----' `--' `--' * )\ _/ / just like magic * .-' '--. / * \, \ /| * ';,_) _)'\ \,// This program is distributed * `\ ( '._/ under the terms of the MIT license. * | . '. * | \ Please see the `LICENSE.md` file for details. * | \| | * \ | / Send your comments and suggestions to… * '.| / . */ import program from 'commander'; import { printBanner as banner } from '../lib/terminal/out'; import { version } from '../package.json'; banner(); program .version( version ) .command( 'aliases', 'Lists all aliases.' ) .command( 'alias ', 'Adds a new alias for .' ) .command( 'rmalias ', 'Removes the alias named .' ) .command( 'tag [tag1 tag2...]', 'Adds tags to all the results that match the search query .' ) .command( 'rmtag [tag1 tag2...]', 'Removes tags from all the results that match the search query .' ) .command('purge', 'Removes ALL the indexed data, and ALL the aliases. This process is IRREVERSIBLE.' ) .command( 'update', 'Updates and re-sorts the index by fetching metadata for the newly-added items.' ) .command( 'find [options]', 'Performs a search. See README.md for details.' ) .parse( process.argv );