winshlrc.scripts package

Submodules

winshlrc.scripts.extract module

Script to extract Windows shell information.

winshlrc.scripts.extract.Main()[source]

Entry point of console script to extract Windows shell information.

Returns:

exit code that is provided to sys.exit().

Return type:

int

winshlrc.scripts.generate_docs module

Script to generate Windows shell documentation.

class winshlrc.scripts.generate_docs.ControlPanelItemMarkdownOutputWriter(path)[source]

Bases: object

Control panel item Markdown output writer.

WriteControlPanelItem(control_panel_item_definition)[source]

Writes a control panel item to a Markdown file.

Parameters:

control_panel_item_definition (ControlPanelItemDefinition) – control panel item definition.

__enter__()[source]

Make this work with the ‘with’ statement.

__exit__(exception_type, value, traceback)[source]

Make this work with the ‘with’ statement.

__init__(path)[source]

Initializes a control panel item Markdown output writer.

class winshlrc.scripts.generate_docs.ControlPanelItemsIndexRstOutputWriter(path)[source]

Bases: object

Control panel items folder Index.rst output writer.

WriteControlPanelItem(control_panel_item_identifier)[source]

Writes a control panel item to the index.rst file.

Parameters:

control_panel_item_identifier (str) – control panel item identifier.

__enter__()[source]

Make this work with the ‘with’ statement.

__exit__(exception_type, value, traceback)[source]

Make this work with the ‘with’ statement.

__init__(path)[source]

Initializes a control panel items index.rst output writer.

class winshlrc.scripts.generate_docs.KnownFolderMarkdownOutputWriter(path)[source]

Bases: object

Known folder Markdown output writer.

WriteKnownFolder(known_folder_definition)[source]

Writes a known folder to a Markdown file.

Parameters:

known_folder_definition (KnownFolderDefinition) – known folder definition.

__enter__()[source]

Make this work with the ‘with’ statement.

__exit__(exception_type, value, traceback)[source]

Make this work with the ‘with’ statement.

__init__(path)[source]

Initializes a known folder Markdown output writer.

class winshlrc.scripts.generate_docs.KnownFoldersIndexRstOutputWriter(path)[source]

Bases: object

Known folders Index.rst output writer.

WriteKnownFolder(known_folder_identifier)[source]

Writes a known folder to the index.rst file.

Parameters:

known_folder_identifier (str) – known folder identifier.

__enter__()[source]

Make this work with the ‘with’ statement.

__exit__(exception_type, value, traceback)[source]

Make this work with the ‘with’ statement.

__init__(path)[source]

Initializes a known folders index.rst output writer.

winshlrc.scripts.generate_docs.Main()[source]

Entry point of console script to generate Windows shell documentation.

Returns:

exit code that is provided to sys.exit().

Return type:

int

class winshlrc.scripts.generate_docs.ShellFolderMarkdownOutputWriter(path)[source]

Bases: object

Shell folder Markdown output writer.

WriteShellFolder(shell_folder_definition)[source]

Writes a shell folder to a Markdown file.

Parameters:

shell_folder_definition (ShellFolderDefinition) – shell folder definition.

__enter__()[source]

Make this work with the ‘with’ statement.

__exit__(exception_type, value, traceback)[source]

Make this work with the ‘with’ statement.

__init__(path)[source]

Initializes a shell folder Markdown output writer.

class winshlrc.scripts.generate_docs.ShellFoldersIndexRstOutputWriter(path)[source]

Bases: object

Shell folders Index.rst output writer.

WriteShellFolder(shell_folder_identifier)[source]

Writes a shell folder to the index.rst file.

Parameters:

shell_folder_identifier (str) – shell folder identifier.

__enter__()[source]

Make this work with the ‘with’ statement.

__exit__(exception_type, value, traceback)[source]

Make this work with the ‘with’ statement.

__init__(path)[source]

Initializes a shell folders index.rst output writer.

winshlrc.scripts.generate_source module

Script to generate Windows shell related source code.

class winshlrc.scripts.generate_source.LibfwsiControlPanelItemIdentifierGenerator(path)[source]

Bases: object

Generator for libfwsi control_panel_item_identifier.[ch] source code.

GenerateCFile(control_panel_items)[source]

Generates the C source code file.

Parameters:

control_panel_items (dict[str, ControlPanelItemDefinition]) – control panel item per name.

GenerateHFile(control_panel_items)[source]

Generates the H source code file.

Parameters:

control_panel_items (dict[str, ControlPanelItemDefinition]) – control panel item per name.

__init__(path)[source]

Initializes a libfwsi control_panel_item_identifier.[ch] generator.

Parameters:

path (str) – path.

class winshlrc.scripts.generate_source.LibfwsiKnownFolderIdentifierGenerator(path)[source]

Bases: object

Generator for libfwsi known_folder_identifier.[ch] source code.

GenerateCFile(known_folders)[source]

Generates the C source code file.

Parameters:

known_folders (dict[str, KnownFolderDefinition]) – known folders per name.

GenerateHFile(known_folders)[source]

Generates the H source code file.

Parameters:

known_folders (dict[str, KnownFolderDefinition]) – known folders per name.

__init__(path)[source]

Initializes a libfwsi known_folder_identifier.[ch] generator.

Parameters:

path (str) – path.

class winshlrc.scripts.generate_source.LibfwsiShellFolderIdentifierGenerator(path)[source]

Bases: object

Generator for libfwsi shell_folder_identifier.[ch] source code.

GenerateCFile(shell_folders)[source]

Generates the C source code file.

Parameters:

shell_folders (dict[str, ShellFolderDefinition]) – shell folders per name.

GenerateHFile(shell_folders)[source]

Generates the H source code file.

Parameters:

shell_folders (dict[str, ShellFolderDefinition]) – shell folders per name.

__init__(path)[source]

Initializes a libfwsi shell_folder_identifier.[ch] generator.

Parameters:

path (str) – path.

winshlrc.scripts.generate_source.Main()[source]

Entry point of console script to generate source code.

Returns:

exit code that is provided to sys.exit().

Return type:

int

winshlrc.scripts.merge_yaml module

Script to combine winshl-kb YAML files.

winshlrc.scripts.merge_yaml.Main()[source]

Entry point of console script to combine winshl-kb YAML files.

Returns:

exit code that is provided to sys.exit().

Return type:

int

class winshlrc.scripts.merge_yaml.YAMLOutputWriter[source]

Bases: object

YAML output writer.

WriteKnownFolder(known_folder_definition)[source]

Writes a known folder definition in YAML to stdout.

Parameters:

known_folder_definition (KnownFolderDefinition) – known folder definition.

__enter__()[source]

Make this work with the ‘with’ statement.

__exit__(exception_type, value, traceback)[source]

Make this work with the ‘with’ statement.

Module contents