pub fn script_exists(name: &str, config: &Config) -> bool
Expand description
Returns whether a certain script exists. Returns false
when
errors occur.
If you want to get error information in case of an error,
use find_script()
instead.
These are equivalent:
use devscripts::{script_exists, find_script};
use devscripts::Config;
let config = Config::default();
let a = script_exists("my_script", &config);
let b = find_script("my_script", &config).ok().flatten().is_some();
assert_eq!(a, b);