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

Method get_output_config

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

Create a DiffOutputConfig from the command settings.

(&self)

Source from the content-addressed store, hash-verified

190
191 /// Create a DiffOutputConfig from the command settings.
192 pub(crate) fn get_output_config(&self) -> DiffOutputConfig {
193 DiffOutputConfig {
194 context_lines: self.context,
195 color: !self.no_color,
196 format: self.get_format(),
197 stat_width: 80,
198 show_line_numbers: false,
199 show_path_prefix: true,
200 word_diff: self.word_diff,
201 }
202 }
203}
204
205impl Default for Diff {

Callers 3

runMethod · 0.80

Calls 1

get_formatMethod · 0.80

Tested by 2