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

Method get_format

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

Get the output format based on command flags.

(&self)

Source from the content-addressed store, hash-verified

169
170 /// Get the output format based on command flags.
171 pub fn get_format(&self) -> DiffFormat {
172 if self.name_only {
173 DiffFormat::NameOnly
174 } else if self.name_status || self.short {
175 DiffFormat::NameStatus
176 } else if self.stat {
177 DiffFormat::Stat
178 } else {
179 DiffFormat::Unified
180 }
181 }
182
183 /// Parse the algorithm string into an Algorithm enum.
184 pub(crate) fn parse_algorithm(&self) -> CliResult<Algorithm> {

Callers 1

get_output_configMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected