class documentation
class SubcommandOfNestedTextTo(Subcommand): (source)
Known subclasses: nt2.formats.hjson.NestedTextToHjson, nt2.formats.huml.NestedTextToHUML, nt2.formats.json.NestedTextToJSON, nt2.formats.maml.NestedTextToMAML, nt2.formats.toml.NestedTextToTOML, nt2.formats.xml.NestedTextToXML, nt2.formats.yaml.NestedTextToYAML
Base class for all subcommands of NestedTextTo.
| Method | dump |
Read NestedText from stdin or input_files, and send another format to stdout. |
| Constant | DESCRIPTION |
Undocumented |
| Constant | DOCSTRING |
Undocumented |
| Constant | OTHER |
Undocumented |
Inherited from Subcommand:
| Constant | ALLOW |
Undocumented |
Inherited from Command (via Subcommand):
| Constant | COLOR |
Undocumented |
| Constant | SUBCOMMAND |
Undocumented |
| Constant | VERSION |
Undocumented |
def dump(self, *, input_files:
LocalPath, dump_stdout: Callable[ [ TypedData], None], dump_str: Callable[ [ TypedData], str], fmt: str, converter: Converter, fix_data: Callable[ [ TypedData], TypedData] | None = None):
(source)
¶
Read NestedText from stdin or input_files, and send another format to stdout.
| Parameters | |
inputLocalPath | LocalPaths with NestedText content. |
dumpCallable[ | A function to dump the data to stdout, plainly. |
dumpCallable[ | A function to dump the data to a string, also plain, for potential colorizing. |
fmt:str | The format to use for dumping (e.g., 'toml'). |
converter:Converter | A Converter used to unstructure the result to match specific type support. |
fixCallable[ | A function to fix the data, post-uptyping, if necessary. |
overridden in
nt2.formats.hjson.NestedTextToHjson, nt2.formats.huml.NestedTextToHUML, nt2.formats.json.NestedTextToJSON, nt2.formats.maml.NestedTextToMAML, nt2.formats.toml.NestedTextToTOML, nt2.formats.xml.NestedTextToXML, nt2.formats.yaml.NestedTextToYAMLUndocumented
| Value |
|