module documentation
CLI definitions, parsing, and entry points.
After argument processing, these call into the dumpers functions to get the job done.
| Class | |
Convert NestedText to another format. |
| Class | |
Print completion code for the given shell. |
| Class | |
Convert another format to NestedText. |
| Class | |
Convert another format to another format, by way of NestedText. |
| Class | |
Mixin for adding the -f/--from switch. |
| Constant | FORMATS |
Undocumented |
| Constant | SUBCOMMANDS |
Undocumented |
| Variable | SUBCOMMANDS |
Undocumented |
| Variable | SUBCOMMANDS |
Undocumented |
| Function | _determine |
Return the appropriate 2nt subcommand for the input file and from_format switch value. |
| Function | _to |
Undocumented |
Undocumented
| Value |
|
def _determine_2nt_subcommand(from_format:
str | None, data_file: LocalPath | None = None) -> SubcommandOfToNestedText:
(source)
¶
Return the appropriate 2nt subcommand for the input file and from_format switch value.
| Parameters | |
fromstr | None | The -f/--from switch value. |
dataLocalPath | None | The input file to determine the 2nt subcommand for. |
| Returns | |
SubcommandOfToNestedText | The appropriate 2nt subcommand for the input file and -f/--from switch value. |
| Raises | |
NTTError | If the subcommand cannot be determined. |