sak : Swiss Army Knife
sak is a module, submodule and function based tool
install :
pip3 install sak
usage :
$ <module> <submodule>* <function> <*args> <**kwargs>
will execute function <function>
from file sak/module(/submodule)*.py
with
*args
and **kwargs
.
**kwargs
are POSIX-like options and flags, to set a flag to a falsy
value just prepend no
in front of the flag name. For example --prompt
sets
kwargs["prompt"] = True
while --noprompt
sets kwargs["prompt"]
= False.
Examples,
-
retrieve info on git repos located under . and workspace
$ git info . workspace
-
list functions and submodules available in module site
$ help info site
All modules, submodules and functions support shortcuts,
-
hash remote ftp site:
$ si h
-
concat js files in js/src and put output in js/min
$ j b js
All functions support kwargs,
-
clone all your github repos:
$ gth d --username aureooms --noprompt
All functions support shrinking kwargs,
-
clone all your github repos:
$ gth d -u aureooms --nopro
Currently available modules:
- bitbucket
- clipboard
- codeclimate
- config
- cpm
- css
- date
- git
- github
- gmail
- help
- img
- js
- navigator
- npm
- orddir
- sak
- site
- sty
- sublime
- tex
- text
- train
- update
- url