Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detailed configuration per demo step #2

Open
PalmEmanuel opened this issue Jun 16, 2023 · 0 comments
Open

Detailed configuration per demo step #2

PalmEmanuel opened this issue Jun 16, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@PalmEmanuel
Copy link

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'
    }
)
@PalmEmanuel PalmEmanuel added the enhancement New feature or request label Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant