Skip to content

Instantly share code, notes, and snippets.

@colstrom
Last active December 9, 2016 06:41
Show Gist options
  • Select an option

  • Save colstrom/f7896f88ad2b9e9ce6b31c47ce68bf7c to your computer and use it in GitHub Desktop.

Select an option

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
function commands-in-apk
for package in $argv
apk info --contents {$package} | string match --all --regex '^(usr/)?s?bin/.*'
end
end
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