Skip to content

Feat: addint new configparam types#20

Open
gergely-szabo-sap wants to merge 5 commits intomainfrom
feat/new-types
Open

Feat: addint new configparam types#20
gergely-szabo-sap wants to merge 5 commits intomainfrom
feat/new-types

Conversation

@gergely-szabo-sap
Copy link
Contributor

The following new types were added:

  • int

- Add DurationParam type for time.Duration configuration values
- Add DurationInput widget with duration validation
- Add duration parameter example with interactive prompt
- Update README with DurationInput widget documentation
- Fix typos in float/int parameter example commands
- Add documentation for `IntInput`, `FloatInput`, and `DurationInput` widgets in the README
- Document the new `int` configuration parameter type and its usage
- Refactor `IntParam`, `FloatParam`, and `DurationParam` to use embedded fields (`Name`, `Description`, `Example`) directly
- Update `ValueOrAsk` to call `p.IsSet()` and adjust `viper.Set` calls to use `p.Name`
- Fix spacing in example `WithDefaultValue` calls and indentation of `cli.Execute()`
- Minor formatting and typo fixes throughout the changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] xp-clifford: Add other config parameter types

1 participant