MCPcopy Create free account
hub / github.com/delinoio/oss / exit_code

Method exit_code

crates/nodeup/src/errors.rs:22–32  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

20
21impl ErrorKind {
22 pub fn exit_code(self) -> i32 {
23 match self {
24 Self::Internal => 1,
25 Self::InvalidInput => 2,
26 Self::UnsupportedPlatform => 3,
27 Self::Network => 4,
28 Self::NotFound => 5,
29 Self::Conflict => 6,
30 Self::NotImplemented => 7,
31 }
32 }
33}
34
35#[derive(Debug, Error)]

Callers 3

mainFunction · 0.45
clap_error_envelopeFunction · 0.45
json_envelopeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected