Skip to content

[FEAT]how about making every default value configurable? #263

@yunfan

Description

@yunfan

Is your feature request related to a problem? Please describe.

when i reading the source code, i found that many default value were hardcode , which is ugly and not easy to let user to modify as wish

Describe alternatives you've considered

1, we need to add a rule to the code of conduct to enforce everyone not use hardcode but use a configurable value

2, we could define all the default value in a single file on the root of the project, like defaults.ts , so the reference could be defaults.someDomain.someKey

3, this defaults.ts value could be overwrited by environment variables and commandline option

Additional context

No response

Describe the thing to improve

1, we need to add a rule to the code of conduct to enforce everyone not use hardcode but use a configurable value

2, we could define all the default value in a single file on the root of the project, like defaults.ts , so the reference could be defaults.someDomain.someKey

3, this defaults.ts value could be overwrited by environment variables and commandline option

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions