Skip to content
ConsoleMonster
Cmdlet

Import-ConsoleCodeFrame

Module
ConsoleMonster
Inputs
None
Outputs
ConsoleMonster.Export.CodeFrameSource

Recovers the embedded source from a ConsoleMonster SVG code frame.

Syntax

Import-ConsoleCodeFrame
[-Path] <String>
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

Returns the original Source, Language, FirstLine and LastLine. The SVG is read as data and the recovered source is never executed.

Examples

Example 1

(Import-ConsoleCodeFrame -Path ./function.svg).Source

Recover the source of a code frame

Parameters

-Path String requiredposition: 0
The literal path to an SVG containing ConsoleMonster source metadata.

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.