Skip to content

When using Viper, it seems difficult to easily delete an existing configuration item. #1935

Open
@LuSrackhall

Description

Preflight Checklist

  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Problem Description

I hope there is an API that can achieve this functionality.

I also noticed that there was a related proposal in a pull request a long time ago, but it seems that after discussion, it could not be merged because it was not suitable for all scenarios of Viper.

Viper has a large user base, and there are many considerations for its applicable scenarios and breadth. However, could APIs be provided based on specific scenarios? (Just note in the documentation that this API is only applicable in certain scenarios, just like some APIs in programming behave differently or are not applicable across different operating systems, just note it.)

For example, users like me only need a simple local configuration file source and the ability to delete related configurations in the configuration file.

Proposed Solution

Classify the usage scenarios and sources of Viper, and provide APIs that are only targeted at specific classification situations, with the usage scope noted in the documentation. This could make it easier and more user-friendly for users in single scenarios to use Viper.

This might bring additional maintenance costs, but nothing is perfect. If all new features have to consider all scenarios (even if some scenarios do not care about this feature, but still have to be considered), doesn’t this introduce additional design costs

Alternatives Considered

No response

Additional Information

I am just a new user who has recently started using Viper, and my usage scenario is very simple (I am only using some of the basic functions provided by Viper).

Although I notice that Viper is very powerful, it doesn’t seem to be very user-friendly. Many parts are designed too advanced, so some functions that many users consider necessary do not have simple ways to use them.

For example, the small practical problem I am currently encountering. (However, there must be a clever solution, I just haven’t found it yet.)

Re-submitting the request is just to hope that Viper can be more user-friendly on the basis of being powerful.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions