Last active
December 9, 2016 06:41
-
-
Save colstrom/f7896f88ad2b9e9ce6b31c47ce68bf7c to your computer and use it in GitHub Desktop.
commands-in-apk.fish: prints a list of commands in an Alpine .apk package
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function commands-in-apk | |
| for package in $argv | |
| apk info --contents {$package} | string match --all --regex '^(usr/)?s?bin/.*' | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name = commands-in-apk | |
| author = Chris Olstrom | |
| license = MIT | |
| provides = fish/functions/commands-in-apk | |
| requires | |
| command/apk | |
| fish/builtin/end | |
| fish/builtin/for | |
| fish/builtin/function | |
| fish/builtin/string | |
| fish/functions/commands-in-apk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment