This PR implements workspace config and some cli.
Features changed or added as follows:
User should define fields in workspace config.
Introduce a new format to define the relationship between registries and fields when config parsing. For example:
"Transform"
"*Model" # `*` means the Registry should be added into fields
"*Data: TrainData, TestData" # `*` and `:` exist meanwhile, so `TrainData` and `TestData` instead of `Data` will be added into fields
All Registry definition should be in a single python file(default in init.py), see example/src/__init__.py. If Registry are defined in given entry file, the field in workspace config will be automatically added instead of mannully input. Otherwise the Registry definition will be generated according to the input fields.
json_schema_fields need to be added in workspace file manully.
Intending to add a props field in workspace config, which represents the constant in the whole project and can be used when config parsing somehow(seems not necessary, shelved now).
This PR implements workspace config and some cli. Features changed or added as follows:
Registry
definition should be in a single python file(default in init.py), seeexample/src/__init__.py
. If Registry are defined in given entry file, the field in workspace config will be automatically added instead of mannully input. Otherwise the Registry definition will be generated according to the input fields.json_schema_fields
need to be added in workspace file manully.props
field in workspace config, which represents the constant in the whole project and can be used when config parsing somehow(seems not necessary, shelved now).resolve #12