Skip to content

Releases: jeppevammenkristensen/auto-spectre

v.0.9.0

02 Jul 19:53
Compare
Choose a tag to compare

AutoSpectre.SourceGeneration

  • Added support for the EnableSearch
  • Removed AskAttribute
  • Made SpectreDump method obsolete as better alternatives exist.
  • Better handling of nested types
  • Better handling of special characters in strings

v.0.8.2

25 Jun 20:55
Compare
Choose a tag to compare

What's Changed

Fixed an issue where the string used in title. For instance [TextPrompt("\"name\"")] would not be correctly be rendered

v 0.8.0

30 Nov 23:40
Compare
Choose a tag to compare

0.8.0

AutoSpectre

AutoSpectre.SourceGeneration

  • An extension method is now exposed so it's possible to call the Prompt method on an instance without having to
    instantiate the factory class.
  • An extension method will be generated per decorated class to allow to Dump the values to the console.
  • The dump method can be deactiveated
  • Added support for defining DefaultValueStyle and ChoiceStyle on bool values decorated with the [TextPrompt] attribute. (this will generate a ConfirmationPrompt in Spectre)

v.0.7.0

03 Oct 20:10
Compare
Choose a tag to compare

0.7.0

AutoSpectre

  • TextPrompt has three new properties for defining choices.
  • DefaultValueSource added on TextPrompt

AutoSpectre.SourceGeneration

  • Based on the new properties in TextPrompt, the source generation has been updated to support these new properties.
  • New solution for defining DefaultValueSource. Old way discarded.
  • Fixed double diagnostics if source was missing
  • Added support for defining Sources that are Static. And allow them to be fields
    1. Source on SelectPrompt now supports fields and static
    2. Converter on SelectPrompt now supports static method
    3. Validator on TextPrompt now supports static method.
    4. TypeInitializer on TextPrompt now supports static method.
    5. Choices on TextPrompt now supports static and has added fields

0.6.0

12 Sep 19:07
Compare
Choose a tag to compare

0.6.0

Autospectre

  • Added an extended Text prompt to allow for passing in a delegate to convert from string to the given type of the prompt
  • Added extension method to allow setting the culture "fluently" used by source generation
  • Added possibility to add custom extra text to TextPrompt title.

AutoSpectre.SourceGeneration

  • Fix to allow inheritance for form classes (classes decorated with AutoSpectreForm)
  • Allow setting culture to use for source generation. The culture is initalized as a culture variable. Per default it will be the CurrentUICulture
  • Added ability to point to a method to initialize anohter referenced form. This is useful if that class has a constructor that is not empty.

Added Condition and NegateCondition

06 Aug 23:02
Compare
Choose a tag to compare
  • Added Condition and NegateCondition to conditionally prompt
  • Added documentation for Conditions and their convention
  • Updated the general example class
  • Changed the description of the AutoSpectre.SourceGeneration package

Fixed issue with validation for classes decorated with AutoSpectreForm

29 Jul 20:31
Compare
Choose a tag to compare
  • Latest validation feature didn't support validation when using a type in a form that was also decorated with AutoSpectreForm
  • Fixed icon and credits for nuget packages

0.3.6

25 Jul 21:34
Compare
Choose a tag to compare

Added handling of Validation. With or without conventions
Fixed missing readme in nuget packages

0.3.5

24 Jul 20:36
Compare
Choose a tag to compare
  • Added convention so SelectionSource can be ommitted if a source with name {NameOfProperty}Source is available
  • Added convention so Converter can be omitted if a converter with name {NameOfProperty}Converter is available
  • Updated summary on AutoSpectre library to hopefully make it little less unintuitive to use