MCPcopy Create free account
hub / github.com/ducaale/xh / get_command

Function get_command

tests/cli.rs:101–106  ·  view source on GitHub ↗

Sensible default command to test with. use [`get_base_command`] if this setup doesn't apply.

()

Source from the content-addressed store, hash-verified

99/// Sensible default command to test with. use [`get_base_command`] if this
100/// setup doesn't apply.
101fn get_command() -> Command {
102 let mut cmd = get_base_command();
103 cmd.env("XH_TEST_MODE", "1");
104 cmd.env("XH_TEST_MODE_TERM", "1");
105 cmd
106}
107
108/// Do not pretend the output goes to a terminal.
109fn redirecting_command() -> Command {

Callers 15

color_commandFunction · 0.85
basic_json_postFunction · 0.85
basic_getFunction · 0.85
basic_headFunction · 0.85
basic_optionsFunction · 0.85
multiline_valueFunction · 0.85
post_empty_bodyFunction · 0.85
nested_jsonFunction · 0.85
nested_json_type_errorFunction · 0.85

Calls 2

get_base_commandFunction · 0.85
envMethod · 0.80

Tested by 15

basic_json_postFunction · 0.68
basic_getFunction · 0.68
basic_headFunction · 0.68
basic_optionsFunction · 0.68
multiline_valueFunction · 0.68
post_empty_bodyFunction · 0.68
nested_jsonFunction · 0.68
nested_json_type_errorFunction · 0.68
headerFunction · 0.68