You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are several issues that have accumulated, so I will try to sum up
desired behaviour for the bcfg.
Use camelCase to represent namespaces internally. Currently it only
lower cases everything.
remove special configuration type: config, that just overrides
whatever is passed to getFile. This will remove inconsistency with Config
option and multiple files update (Allow for multiple layered config files #3).
Files, Env, Args, Hash and Query should translate to camelCase for
internal representation(1).
Options injected from javascript can pass camelCase to pass the
options(1).
Module names can use -(dash) to have multi word names.
(e.g. log-network)
filter will use dash separated (dash-case) prefix, instead
of ignoring case.
Parsing
File
Format of the file does not change. The thing that changes is how we
process the results.
Example:
option-example: 123
optionexample: 111
Current behaviour wont differentiate between these two. It will be optionexample internally. These will be two different options with new
behaviour: optionExample and optionexample.
Env
Similar problem:
MODULE_OPTION_EXAMPLE=123MODULE_OPTIONEXAMPLE=111
will be: optionexample internally. New behaviour optionExample and optionexample.
Args
Similar.
--option-example=123 --optionexample=123
This will be: optionexample internally. New behaviour: optionExample and optionexample.
Bconfig updates
Table of Contents
Bconfig updates
There are several issues that have accumulated, so I will try to sum up
desired behaviour for the bcfg.
camelCase
to represent namespaces internally. Currently it onlylower cases everything.
config
, that just overrideswhatever is passed to
getFile
. This will remove inconsistency with Configoption and multiple files update (Allow for multiple layered config files #3).
camelCase
forinternal representation(1).
camelCase
to pass theoptions(1).
-
(dash) to have multi word names.(e.g.
log-network
)dash-case
) prefix, insteadof ignoring case.
Parsing
File
Format of the file does not change. The thing that changes is how we
process the results.
Example:
Current behaviour wont differentiate between these two. It will be
optionexample
internally. These will be two different options with newbehaviour:
optionExample
andoptionexample
.Env
Similar problem:
will be:
optionexample
internally. New behaviouroptionExample
andoptionexample
.Args
Similar.
This will be:
optionexample
internally. New behaviour:optionExample
andoptionexample
.Injected options
Injected options have the similar behaviour.
New behaviour will leave them as is, separate. (
options
being thenamespace
)Hashes and Query (browser)
These will also generate two separate internal options.
Getting
Getting configurations will still be the same, but will query keys with new
behaviour.
Now these will query two different options:
optionExample
andoptionexample
.Filtering
Filtering will now use case information as namespace.
The text was updated successfully, but these errors were encountered: