MCPcopy Create free account
hub / github.com/1612elphi/delphitools-cli / delphi

Function delphi

tests/cli.rs:3–13  ·  view source on GitHub ↗
(args: &[&str])

Source from the content-addressed store, hash-verified

1use std::process::Command;
2
3fn delphi(args: &[&str]) -> (String, String, i32) {
4 let output = Command::new(env!("CARGO_BIN_EXE_delphi"))
5 .args(args)
6 .output()
7 .expect("failed to run delphi");
8 (
9 String::from_utf8_lossy(&output.stdout).to_string(),
10 String::from_utf8_lossy(&output.stderr).to_string(),
11 output.status.code().unwrap_or(-1),
12 )
13}
14
15// --- colour ---
16

Callers 15

colour_single_formatFunction · 0.85
colour_multiple_formatsFunction · 0.85
colour_all_formatsFunction · 0.85
colour_namedFunction · 0.85
colour_hsl_inputFunction · 0.85
colour_jsonFunction · 0.85
colour_invalidFunction · 0.85
contrast_black_whiteFunction · 0.85
contrast_jsonFunction · 0.85
px2remFunction · 0.85
rem2pxFunction · 0.85
px2rem_custom_baseFunction · 0.85

Calls

no outgoing calls

Tested by 15

colour_single_formatFunction · 0.68
colour_multiple_formatsFunction · 0.68
colour_all_formatsFunction · 0.68
colour_namedFunction · 0.68
colour_hsl_inputFunction · 0.68
colour_jsonFunction · 0.68
colour_invalidFunction · 0.68
contrast_black_whiteFunction · 0.68
contrast_jsonFunction · 0.68
px2remFunction · 0.68
rem2pxFunction · 0.68
px2rem_custom_baseFunction · 0.68