Files
nu-ffmpeg/get_ffprobe_commands_table
2024-02-03 22:57:33 -05:00

16 lines
355 B
Nu
Executable File

#!/usr/bin/env -S nu -n
# vim: filetype=nu :
use ffprobe;
def main [] {
(
help commands
| where command_type == "custom" and name !~ "p(rompt|wd)"
| select name usage
| update name { if $in == 'main' { 'ffprobe' } else { $'ffprobe ($in)' } }
| filter { not ($in.name == 'ffprobe' and ($in.usage | is-empty)) }
| to md -p
)
}