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

Method get_output_config

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

Create a DiffOutputConfig from the command settings.

(&self)

Source from the content-addressed store, hash-verified

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

Callers 3

runMethod · 0.80

Calls 1

get_formatMethod · 0.80

Tested by 2