The kmdr cli tool and browser extension use the same technology to break down and explain the attributes of commands. Even commands with complex syntax and/or within complicated structures can be explained.
kmdr can explain commands that consist of or are part of complex structures thanks to a nifty semantic parser.
The semantic parser lets kmdr explain:
Options (also known as Flags) written in long or short formats
New UX patterns such as Git, Docker, Kubectl, etc
Where the output of a program goes before execution
Comands inside funtions or where variables are assigned
Commands inside a loop or block of code
The flow of STDOUT to SDTIN from process to process
The criptic keywords bash has for testing strings, integers, and files. Also includes logical operaters such as && and ||
Commands that run other commands
Arguments with metadata or information via APIs. Available for Git Clone and npm install operations
The kmdr database contains definitions for hundreds of programs and includes those with complicated syntax structures. The database differentiates programs where a subcommand can take subcommands or where arguments are expected.