Skip to content

Generic "read line" function for scripting #2487

Description

@KockaAdmiralac

Which component should be improved?

CLI

Describe your feature suggestion in more detail

For the Deltarune code viewer, I wanted to make our ExportCodeFormatted.csx script read the output directory from stdin. This didn't work, because UTMT's CLI does not expose a great way for me to do this:

  • PromptChooseDirectory() requires the directory being chosen to exist (the script is creating the directory)
  • Console.ReadLine() doesn't work, because the input is non-interactive (in GitHub Actions)
  • PromptPath() and ReadLineWithFallback() are private

I think it would be useful if ReadLineWithFallback() and/or PromptPath() were exposed to the scripting environment.

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