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

refactor(simapp): add ,squash tag #17172

Merged
merged 1 commit into from
Jul 28, 2023
Merged

Conversation

zakir-code
Copy link
Contributor

Description

Avoid being unable to directly parse the data in viper into CustomAppConfig through viper.Unmarshal(config), although CustomAppConfig here is not used, but I think it should be demonstrated in simapp.

@zakir-code zakir-code requested a review from a team as a code owner July 28, 2023 08:45
@julienrbrt julienrbrt changed the title refactor: add ,squash flag refactor(simapp): add ,squash flag Jul 28, 2023
@julienrbrt julienrbrt added the backport/v0.50.x PR scheduled for inclusion in the v0.50's next stable release label Jul 28, 2023
Copy link
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

For ref:

// Squash will squash embedded structs. A squash tag may also be
// added to an individual struct field using a tag. For example:
//
// type Parent struct {
// Child mapstructure:",squash"
// }
Squash bool

https://pkg.go.dev/github.com/mitchellh/mapstructure#section-readme

@julienrbrt julienrbrt added this pull request to the merge queue Jul 28, 2023
@julienrbrt julienrbrt changed the title refactor(simapp): add ,squash flag refactor(simapp): add ,squash tag Jul 28, 2023
Merged via the queue into cosmos:main with commit 1a331a6 Jul 28, 2023
mergify bot pushed a commit that referenced this pull request Jul 28, 2023
julienrbrt pushed a commit that referenced this pull request Jul 28, 2023
Co-authored-by: zakir-code <80246097+zakir-code@users.noreply.github.com>
@faddat faddat mentioned this pull request Nov 8, 2024
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/v0.50.x PR scheduled for inclusion in the v0.50's next stable release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants