Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

theiskaa/stackoverflow_cli

Repository files navigation

Scli - StackOverflow CLI

Installing

The scli are not available yet to install from homebrew or any other package manager. So then we have to clone repo first of all.

Then activate it:

pub global activate --source path <repo path here>

After the activating, we have to export the path of pub cache. add it to your .bash_profile/.bashrc maybe.

export PATH="$PATH":"HOME/.pub-cache/bin"

Available functionalities:

  • Get questions
    • Options:
    • Get all (would get 100 question)
    • Get by id
    • Get by limiting the result
    • Get by providing custom tags
  • Search questions
    • Options:
    • Get all (would get 100 question)
    • Get by id
    • Get by limiting the result
    • Get by providing custom tags

Usage

To get help about using:

scli help

To get help about concrete command:

scli help <command name> 

Get command usage:

Get questions (Would get excatly 5 question).

scli get

Customized get command: It would get newest questions from [flutter] tag and getted questions length would be 4.

scli get --tag flutter --limit 4

Get command result

Search command usage:

It would search question by gave text, and log avaiable questions.

scli search <Search text here>

Customized search command: It would search questions about "Design patterns" by [flutter] tag and would display just 2 question.

scli search "Design patterns" --tag dart --limit 2

Search command result

View command usage:

View answers of concrete question:

scli view answers <question-id>

View answers command result

View comments of concrete question:

scli view comments <question-id>

View comments command result


Created from templates made available by Stagehand under a BSD-style license.