Giter VIP home page Giter VIP logo

stackoverflow_cli's Introduction

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.

stackoverflow_cli's People

Contributors

theiskaa avatar

Stargazers

 avatar

Watchers

 avatar  avatar

stackoverflow_cli's Issues

View question's answers

Now, we haven't any way to view gotten/searched questions' answers. So that is so big UX issue we must provide a way to do this.

command key should be like:

scli view <question-id> --answers

Also, we should provide a way to view comments, like:

scli view <question-id> --comments

Subcommand for view | view comments

Should provide a way to view commands of question, so like a view answers. (answer is not subcommand actually it's option of view so that's a big mistake, we have to make it subcommand and not option)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.