This can be used when a file is modified externally. It will update the
sqlite database and potentially run git commands for the change.
If there are 2 files provided, it assumes that the file was moved. The
first filename should be the old file.
The new, edit and delete functions were also re factored slightly to use
this new update function.
Relevant to #4Close#2Close#1
This will list the tags along with the number of number of times it is
used.
An optional --noheader flag can be passed after the command to prevent
the header being printed.
e.g.
```
$ kb list-tags
name count
---------------- -----
Linux 2
Authentication 1
Pentesting 1
Enumeration 3
Network Protocol 2
```
```
$ kb list-tags --noheader
Linux 2
Authentication 1
Pentesting 1
Enumeration 3
Network Protocol 2
```
This --noheader flag was also added to the list command
Close#10
Currently Working:
* creating files
* deleting files
* editing files
* viewing files
* searching by id
* git
- Initialises repository
- commits when a file is created or edited (except rename)
- arbitrary git commands on repo with `kb git ....`
* sql
- Database is kept up to date when files are added, deleted or
edited
TODO:
* Recreate database if deleted or freshly cloned
* Add database to gitignore if not in normal location
* Update database if edited without this tool
* Create a git commit if files are deleted or renamed
* makefile for install and test (currently just surecheck)