stackit
is a Stack Overflow query CLI built at SB Hacks 2015.
There are two ways to install stackit. Both should have roughly the same outcome, but have their advantages/disadvantages.
1. PyPI/pip
This method will always produce some stable build, but may not be the most up to date version. New functionality will come slower than building from this repo.
$ pip install stackit
Note, depending on your computer's settings, you may need to sudo pip install stackit
.
2. Build from this repo
This method will always include the latest features, but sometimes will not work at all. Oops!
Clone the repo, then use setup.py to install the package. Note, this process will differ only slightly in a non-bash shell.
$ git clone https://github.com/lukasschwab/stackit.git
$ cd stackit
$ python setup.py install
Note, depending on your computer's settings, you may need to sudo python setup.py install
.
The install process establishes an alias, stackit
, for stackit_core.py's functionality. Instead of using python stackit_core.py
, you will always simply use stackit
at the command prompt.
-h
, --help
: version splash page // usage-s
: --search
: search by user term (string)--version
: simple version report--verbose
: full text of top result and accepted answer-e
: --stderr
: runs your program and searches by stderr output-t
: --tags
: searches by tags in particular (multiple arguments)m
: more: shows the next 5 questions--b
: opens focused question in browser--x
: exit: go back to the list focusTo search Stack Overflow for "How do I create a bash alias" with the tags, "shell";
$ stackit -s "How do I create a bash alias?" -t "shell"
stackit
uses several pre-existing projects:
pyfancy.py
verbatim, but this project demonstrates the method.If you want to write code:
git checkout -b my-new-feature
)git commit -am 'add some feature'
)git push origin my-new-feature
)