Skip to content

Added PathPrompt component

Choose a tag to compare

@DarthPedro DarthPedro released this 08 Oct 23:28
· 1 commit to main since this release
a9b100c

Added

  • PathPrompt: a filesystem path prompt with existence validation and Tab auto-completion. New public API includes PathPrompt (WithBaseDirectory, WithPathKind, WithExtensions, WithDefaultValue, WithErrorMessage, WithPromptStyle, MustExist, IncludeHidden, Show, ShowAsync) and the PathKind enum (Any, File, Directory). The prompt reuses the existing HistoryTextPrompt<T> low-level input and auto-complete infrastructure.

Changed

  • Updated package references to latest versions.
  • Updated Spectre.Console.Cli package references to version 0.57.2.
  • Updated InteractivePrompt.Cli to include a command that uses the PathPrompt component.

Breaking Changes

  • Spectre.Console.Cli 0.57.2 changed the base Command.Execute, Command<TSettings>.Execute, and AsyncCommand.ExecuteAsync members from protected to public. All command overrides in this repository (and in consuming projects) must change their Execute/ExecuteAsync overrides from protected override to public override, or they will fail to compile.