From ba1e869603c48aa3982f81695fcd83245013f14c Mon Sep 17 00:00:00 2001 From: Andrew Hamilton Date: Mon, 4 Jun 2018 08:51:07 +1000 Subject: [PATCH] tools: Added ar for ".a" archive files. --- README.md | 5 +++-- vigil/tools.toml | 9 ++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c74e773..bd10954 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ then to run: ### Tools -Extensions(86) | Tools(53) +Extensions(86) | Tools(54) ---------- | ----- .* | [contents](http://pygments.org/) • metadata • [git_blame](https://git-scm.com/docs/git-blame) • [git_log](https://git-scm.com/docs/git-log) .py | [python_syntax](https://en.wikipedia.org/wiki/Python_syntax_and_semantics) • [python_unittests](https://docs.python.org/3/library/unittest.html) • [pydoc](https://docs.python.org/3/library/pydoc.html) • [mypy](http://www.mypy-lang.org/) • [python_coverage](http://nedbatchelder.com/code/coverage/) • [pycodestyle](https://pypi.python.org/pypi/pycodestyle) • [pydocstyle](http://pydocstyle.readthedocs.org/) • [pyflakes](https://launchpad.net/pyflakes) • [pylint](http://www.pylint.org/) • [python_gut](https://github.com/ahamilton/vigil/blob/master/gut.py) • [python_modulefinder](https://docs.python.org/3/library/modulefinder.html) • [dis](https://docs.python.org/3/library/dis.html) • [python_mccabe](https://github.com/flintwork/mccabe) • [bandit](https://wiki.openstack.org/wiki/Security/Projects/Bandit) @@ -42,7 +42,8 @@ Extensions(86) | Tools(53) .rar | [unrar](http://www.rarlabs.com/) .7z | [7z](https://en.wikipedia.org/wiki/7z) .xz | [unxz](http://tukaani.org/xz/) -.a .so | [nm](https://linux.die.net/man/1/nm) +.a | [ar](https://en.wikipedia.org/wiki/Ar_(Unix)) • [nm](https://linux.die.net/man/1/nm) +.so | [nm](https://linux.die.net/man/1/nm) .png .jpg .gif .bmp .ppm .tiff .tga | [identify](http://www.imagemagick.org/script/identify.php) • [pil](http://python-pillow.github.io/) • [pil_half](http://python-pillow.github.io/) .bash .sh .dash .ksh | [shellcheck](http://hackage.haskell.org/package/ShellCheck) .go | [gofmt](https://golang.org) • [go_vet](https://golang.org) • [golint](https://github.com/golang/lint) • [godoc](http://golang.org/x/tools) diff --git a/vigil/tools.toml b/vigil/tools.toml index 15153cf..8d1d7f1 100644 --- a/vigil/tools.toml +++ b/vigil/tools.toml @@ -24,7 +24,8 @@ tools_for_extensions = [ [["rar"], ["unrar"]], [["7z"], ["7z"]], [["xz"], ["unxz"]], - [["a", "so"], ["nm"]], + [["a"], ["ar", "nm"]], + [["so"], ["nm"]], [["png", "jpg", "gif", "bmp", "ppm", "tiff", "tga"], ["identify", "pil", "pil_half"]], [["bash", "sh", "dash", "ksh"], ["shellcheck"]], @@ -106,6 +107,12 @@ tools_for_extensions = [ command = "unxz -l" success_status = "normal" +[ar] + dependencies = ["binutils"] + url = "https://en.wikipedia.org/wiki/Ar_(Unix)" + command = "ar t" + success_status = "normal" + [nm] dependencies = ["binutils"] url = "https://linux.die.net/man/1/nm"