• Home
  • Raw
  • Download

Lines Matching full:cmd

26     let mut cmd = cmd_for_example("cookbook-read-basic");  in cookbook_read_basic()  localVariable
27 let out = cmd_output_with(&mut cmd, SMALLPOP.as_bytes()); in cookbook_read_basic()
33 let mut cmd = cmd_for_example("cookbook-read-serde"); in cookbook_read_serde() localVariable
34 let out = cmd_output_with(&mut cmd, SMALLPOP.as_bytes()); in cookbook_read_serde()
40 let mut cmd = cmd_for_example("cookbook-read-colon"); in cookbook_read_colon() localVariable
41 let out = cmd_output_with(&mut cmd, SMALLPOP_COLON.as_bytes()); in cookbook_read_colon()
47 let mut cmd = cmd_for_example("cookbook-read-no-headers"); in cookbook_read_no_headers() localVariable
48 let out = cmd_output_with(&mut cmd, SMALLPOP_NO_HEADERS.as_bytes()); in cookbook_read_no_headers()
54 let mut cmd = cmd_for_example("cookbook-write-basic"); in cookbook_write_basic() localVariable
55 let out = cmd_output(&mut cmd); in cookbook_write_basic()
61 let mut cmd = cmd_for_example("cookbook-write-serde"); in cookbook_write_serde() localVariable
62 let out = cmd_output(&mut cmd); in cookbook_write_serde()
68 let mut cmd = cmd_for_example("tutorial-setup-01"); in tutorial_setup_01() localVariable
69 let out = cmd_output_with(&mut cmd, USPOP.as_bytes()); in tutorial_setup_01()
75 let mut cmd = cmd_for_example("tutorial-error-01"); in tutorial_error_01() localVariable
76 let out = cmd_output_with(&mut cmd, USPOP.as_bytes()); in tutorial_error_01()
87 let mut cmd = cmd_for_example("tutorial-error-01"); in tutorial_error_01_errored() localVariable
88 let out = cmd_output_with(&mut cmd, data.as_bytes()); in tutorial_error_01_errored()
94 let mut cmd = cmd_for_example("tutorial-error-02"); in tutorial_error_02() localVariable
95 let out = cmd_output_with(&mut cmd, USPOP.as_bytes()); in tutorial_error_02()
106 let mut cmd = cmd_for_example("tutorial-error-02"); in tutorial_error_02_errored() localVariable
107 let out = cmd_output_with(&mut cmd, data.as_bytes()); in tutorial_error_02_errored()
113 let mut cmd = cmd_for_example("tutorial-error-03"); in tutorial_error_03() localVariable
114 let out = cmd_output_with(&mut cmd, USPOP.as_bytes()); in tutorial_error_03()
125 let mut cmd = cmd_for_example("tutorial-error-03"); in tutorial_error_03_errored() localVariable
126 let out = cmd_output_with(&mut cmd, data.as_bytes()); in tutorial_error_03_errored()
132 let mut cmd = cmd_for_example("tutorial-error-04"); in tutorial_error_04() localVariable
133 let out = cmd_output_with(&mut cmd, USPOP.as_bytes()); in tutorial_error_04()
144 let mut cmd = cmd_for_example("tutorial-error-04"); in tutorial_error_04_errored() localVariable
145 let out = cmd_output_with(&mut cmd, data.as_bytes()); in tutorial_error_04_errored()
151 let mut cmd = cmd_for_example("tutorial-read-01"); in tutorial_read_01() localVariable
152 cmd.arg(data_dir().join("uspop.csv")); in tutorial_read_01()
153 let out = cmd_output(&mut cmd); in tutorial_read_01()
159 let mut cmd = cmd_for_example("tutorial-read-headers-01"); in tutorial_read_headers_01() localVariable
160 let out = cmd_output_with(&mut cmd, USPOP.as_bytes()); in tutorial_read_headers_01()
166 let mut cmd = cmd_for_example("tutorial-read-headers-02"); in tutorial_read_headers_02() localVariable
167 let out = cmd_output_with(&mut cmd, USPOP.as_bytes()); in tutorial_read_headers_02()
173 let mut cmd = cmd_for_example("tutorial-read-delimiter-01"); in tutorial_read_delimiter_01() localVariable
174 let out = cmd_output_with(&mut cmd, STRANGE.as_bytes()); in tutorial_read_delimiter_01()
180 let mut cmd = cmd_for_example("tutorial-read-serde-01"); in tutorial_read_serde_01() localVariable
181 let out = cmd_output_with(&mut cmd, USPOP.as_bytes()); in tutorial_read_serde_01()
188 let mut cmd = cmd_for_example("tutorial-read-serde-02"); in tutorial_read_serde_02() localVariable
189 let out = cmd_output_with(&mut cmd, USPOP.as_bytes()); in tutorial_read_serde_02()
196 let mut cmd = cmd_for_example("tutorial-read-serde-03"); in tutorial_read_serde_03() localVariable
197 let out = cmd_output_with(&mut cmd, USPOP.as_bytes()); in tutorial_read_serde_03()
204 let mut cmd = cmd_for_example("tutorial-read-serde-04"); in tutorial_read_serde_04() localVariable
205 let out = cmd_output_with(&mut cmd, USPOP.as_bytes()); in tutorial_read_serde_04()
212 let mut cmd = cmd_for_example("tutorial-read-serde-invalid-01"); in tutorial_read_serde_05_invalid() localVariable
213 let out = cmd_output_with(&mut cmd, USPOP.as_bytes()); in tutorial_read_serde_05_invalid()
220 let mut cmd = cmd_for_example("tutorial-read-serde-invalid-01"); in tutorial_read_serde_05_invalid_errored() localVariable
221 let out = cmd_output_with(&mut cmd, USPOP_NULL.as_bytes()); in tutorial_read_serde_05_invalid_errored()
227 let mut cmd = cmd_for_example("tutorial-read-serde-invalid-02"); in tutorial_read_serde_invalid_06() localVariable
228 let out = cmd_output_with(&mut cmd, USPOP_NULL.as_bytes()); in tutorial_read_serde_invalid_06()
235 let mut cmd = cmd_for_example("tutorial-write-01"); in tutorial_write_01() localVariable
236 let out = cmd_output(&mut cmd); in tutorial_write_01()
242 let mut cmd = cmd_for_example("tutorial-write-delimiter-01"); in tutorial_write_delimiter_01() localVariable
243 let out = cmd_output(&mut cmd); in tutorial_write_delimiter_01()
250 let mut cmd = cmd_for_example("tutorial-write-serde-01"); in tutorial_write_serde_01() localVariable
251 let out = cmd_output(&mut cmd); in tutorial_write_serde_01()
257 let mut cmd = cmd_for_example("tutorial-write-serde-02"); in tutorial_write_serde_02() localVariable
258 let out = cmd_output(&mut cmd); in tutorial_write_serde_02()
264 let mut cmd = cmd_for_example("tutorial-pipeline-search-01"); in tutorial_pipeline_search_01() localVariable
265 cmd.arg("MA"); in tutorial_pipeline_search_01()
266 let out = cmd_output_with(&mut cmd, USPOP.as_bytes()); in tutorial_pipeline_search_01()
272 let mut cmd = cmd_for_example("tutorial-pipeline-search-01"); in tutorial_pipeline_search_01_errored() localVariable
273 cmd.arg("MA"); in tutorial_pipeline_search_01_errored()
274 let out = cmd_output_with(&mut cmd, USPOP_LATIN1); in tutorial_pipeline_search_01_errored()
280 let mut cmd = cmd_for_example("tutorial-pipeline-search-02"); in tutorial_pipeline_search_02() localVariable
281 cmd.arg("MA"); in tutorial_pipeline_search_02()
282 let out = cmd_output_with(&mut cmd, USPOP_LATIN1); in tutorial_pipeline_search_02()
288 let mut cmd = cmd_for_example("tutorial-pipeline-pop-01"); in tutorial_pipeline_pop_01() localVariable
289 cmd.arg("100000"); in tutorial_pipeline_pop_01()
290 let out = cmd_output_with(&mut cmd, USPOP.as_bytes()); in tutorial_pipeline_pop_01()
296 let mut cmd = cmd_for_example("tutorial-perf-alloc-01"); in tutorial_perf_alloc_01() localVariable
297 let out = cmd_output_with(&mut cmd, WORLDPOP.as_bytes()); in tutorial_perf_alloc_01()
303 let mut cmd = cmd_for_example("tutorial-perf-alloc-02"); in tutorial_perf_alloc_02() localVariable
304 let out = cmd_output_with(&mut cmd, WORLDPOP.as_bytes()); in tutorial_perf_alloc_02()
310 let mut cmd = cmd_for_example("tutorial-perf-alloc-03"); in tutorial_perf_alloc_03() localVariable
311 let out = cmd_output_with(&mut cmd, WORLDPOP.as_bytes()); in tutorial_perf_alloc_03()
317 let mut cmd = cmd_for_example("tutorial-perf-serde-01"); in tutorial_perf_serde_01() localVariable
318 let out = cmd_output_with(&mut cmd, WORLDPOP.as_bytes()); in tutorial_perf_serde_01()
324 let mut cmd = cmd_for_example("tutorial-perf-serde-02"); in tutorial_perf_serde_02() localVariable
325 let out = cmd_output_with(&mut cmd, WORLDPOP.as_bytes()); in tutorial_perf_serde_02()
331 let mut cmd = cmd_for_example("tutorial-perf-serde-03"); in tutorial_perf_serde_03() localVariable
332 let out = cmd_output_with(&mut cmd, WORLDPOP.as_bytes()); in tutorial_perf_serde_03()
338 let mut cmd = cmd_for_example("tutorial-perf-core-01"); in tutorial_perf_core_01() localVariable
339 let out = cmd_output_with(&mut cmd, WORLDPOP.as_bytes()); in tutorial_perf_core_01()
392 let mut cmd = Command::new(example_bin_dir().join(name)); in cmd_for_example() localVariable
393 cmd.current_dir(repo_dir()); in cmd_for_example()
394 cmd in cmd_for_example()
400 fn cmd_output(cmd: &mut Command) -> Output { in cmd_output()
401 cmd.stdout(process::Stdio::piped()); in cmd_output()
402 cmd.stderr(process::Stdio::piped()); in cmd_output()
403 let child = cmd.spawn().expect("command spawns successfully"); in cmd_output()
404 Output::new(cmd, child) in cmd_output()
408 fn cmd_output_with(cmd: &mut Command, data: &[u8]) -> Output { in cmd_output_with()
409 cmd.stdin(process::Stdio::piped()); in cmd_output_with()
410 cmd.stdout(process::Stdio::piped()); in cmd_output_with()
411 cmd.stderr(process::Stdio::piped()); in cmd_output_with()
412 let mut child = cmd.spawn().expect("command spawns successfully"); in cmd_output_with()
417 Output::new(cmd, child) in cmd_output_with()
431 fn new(cmd: &mut Command, child: process::Child) -> Output { in new()
440 command: format!("{:?}", cmd), in new()