Skip to main content

rtk_rewrite

Function rtk_rewrite 

Source
pub(crate) fn rtk_rewrite(command: &str) -> Option<String>
Expand description

Ask rtk for a token-optimized form of command.

Any failure — rtk absent, non-zero exit, no output — is reported as “no rewrite available”, and the caller runs the original command. rtk only covers specific known commands, so this is the ordinary path, not an error.