tmux_capability:command/2
Look up one canonical native command in an exact source profile. Returns unknown_command for aliases or unknown names, unsupported_command when a known command is absent from that profile, and unsupported_command_catalogue for uncatalogued or tracking versions. Performs no I/O.
Source and package
- Qualified name
-
tmux_capability: command/2 - Declared in
tmux_capability- Package
- libtmux_erlang
- Source
- apps/libtmux_erlang/src/tmux_capability.erl
- command(Version, Name) -spec command(tmux
_version: (), binary()) -> {ok, commandt _info ()} | {error, map()}. -
Examples#
1> {ok, V} = tmux_version:parse(<<"tmux 3.3a">>), ok.ok2> {ok, C} = tmux_capability:command(V, <<"send-keys">>), ok.ok3> maps:get(file, maps:get(source, C)).<<"cmd-send-keys.c">>