MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / get_output_config

Method get_output_config

atomic-cli/src/commands/diff/command.rs:250–260  ·  view source on GitHub ↗

Create a DiffOutputConfig from the command settings.

(&self)

Source from the content-addressed store, hash-verified

248
249 /// Create a DiffOutputConfig from the command settings.
250 pub(crate) fn get_output_config(&self) -> DiffOutputConfig {
251 DiffOutputConfig {
252 context_lines: self.context,
253 color: !self.no_color,
254 format: self.get_format(),
255 stat_width: 80,
256 show_line_numbers: false,
257 show_path_prefix: true,
258 word_diff: self.word_diff,
259 }
260 }
261
262 fn workspace_mode(&self) -> WorkspaceTxnMode {
263 if self.change.is_some() || self.snapshot || self.git {

Callers 7

diffFunction · 0.80
diff_view_pairFunction · 0.80
diff_changeFunction · 0.80
run_git_diffMethod · 0.80
runMethod · 0.80

Calls 1

get_formatMethod · 0.80

Tested by 2