pub fn get_description(script: &Script) -> StringExpand description
Get the display description for a script.
Returns the script’s description if set, otherwise falls back to
displaying the command with a $ prefix.
§Examples
use npm_run_scripts::package::{Script, get_description};
let script = Script::with_description("dev", "vite", "Start dev server");
assert_eq!(get_description(&script), "Start dev server");
let script_no_desc = Script::new("build", "vite build");
assert_eq!(get_description(&script_no_desc), "$ vite build");