Skip to content

Detailed configuration per demo step #2

Description

@PalmEmanuel

Is your feature request related to a problem? Please describe.
It would be neat if I could add different settings per demo command in the same demo, such as instant timing for long lines that would normally be copy pasted or similarly, while doing the rest of the commands with manual steps.

Describe the solution you'd like
Maybe the -Demo parameter could take an array of objects that are either strings or hashtables (or similar), where the hashtables can be the command but with settings that will override the current demo settings.

Example

Set-Demo -Timing Manual -Demo @(
    'Import-Module ''Microsoft.Graph.Authentication'' -MaximumVersion 1.28.0'
    'Connect-Graph'

    @{
        Command = '[System.Runtime.Loader.AssemblyLoadContext]::All.Assemblies | Where-Object FullName -like ''System.IdentityModel.Tokens.Jwt*'' | Select-Object *'
        Timing = 'Instant'
    }
)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions