MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / from_flags

Method from_flags

crates/openshell-cli/src/run.rs:92–98  ·  view source on GitHub ↗
(base: bool, full: bool)

Source from the content-addressed store, hash-verified

90
91impl PolicyGetView {
92 pub fn from_flags(base: bool, full: bool) -> Self {
93 match (base, full) {
94 (true, _) => Self::Base,
95 (false, true) => Self::Full,
96 (false, false) => Self::Metadata,
97 }
98 }
99
100 fn includes_policy(self) -> bool {
101 matches!(self, Self::Base | Self::Full)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected