bencyn / Authors-haven-cli

A CLI app that interacts with Author's Haven API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Coverage Status

forthebadge forthebadge forthebadge

AH CLI

A CLI app that interacts with Author's Haven

Commands available

  1. View all articles node cli.js ah list

  2. View specific article node cli.js ah view <article-slug>

  3. Save specific article to file node cli.js ah view <article-slug> --save

  4. Retrieve specific saved article from file node cli.js ah view <article-slug> --offline

  5. Filter article with various flags node cli.js ah search <flag_name>=<flag_value> <2nd_flag_name=<2nd_flag_value>

    Flags available:

     1. author - to get posts by a specific author `author=tevin`
     2. tag - to get articles with a specific tag `tag=python`
     3. title - to get articles with a title that matches what is provided `title=flutter`
     4. page_size - determines the number of articles displayed per page. `page_size=40`
    

    Flags can be composed together

    node cli.js ah search author=tevin tag=python title=flutter page_size=40

  6. To Get help with commands node cli.js ah help

About

A CLI app that interacts with Author's Haven API


Languages

Language:JavaScript 100.0%