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

Method get_format

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

Get the output format based on command flags.

(&self)

Source from the content-addressed store, hash-verified

165
166 /// Get the output format based on command flags.
167 pub fn get_format(&self) -> DiffFormat {
168 if self.name_only {
169 DiffFormat::NameOnly
170 } else if self.name_status || self.short {
171 DiffFormat::NameStatus
172 } else if self.stat {
173 DiffFormat::Stat
174 } else {
175 DiffFormat::Unified
176 }
177 }
178
179 /// Parse the algorithm string into an Algorithm enum.
180 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