MCPcopy Create free account
hub / github.com/FSoft-AI4Code/CodeWiki / to_dict

Method to_dict

codewiki/cli/models/config.py:44–57  ·  view source on GitHub ↗

Convert to dictionary, excluding None values.

(self)

Source from the content-addressed store, hash-verified

42 None # e.g., ["docker/data/*"] skipped by artifact analysis
43 )
44
45 def to_dict(self) -> dict:
46 """Convert to dictionary, excluding None values."""
47 result = {}
48 if self.include_patterns:
49 result["include_patterns"] = self.include_patterns
50 if self.exclude_patterns:
51 result["exclude_patterns"] = self.exclude_patterns
52 if self.artifact_exclude:
53 result["artifact_exclude"] = self.artifact_exclude
54 if self.focus_modules:
55 result["focus_modules"] = self.focus_modules
56 if self.doc_type:
57 result["doc_type"] = self.doc_type
58 if self.custom_instructions:
59 result["custom_instructions"] = self.custom_instructions
60 return result

Callers 2

generate_commandFunction · 0.95
to_backend_configMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected