Currently there is a databind create command that can be used to make a project, but it could be easier to build. The current system that the CLI uses to build is just to pass a path, for example databind ./my_project. There are options for output, configuration, etc., but it would be nice to be able to just run databind and have it build based on the configuration file.
The generation of the configuration file should be able to use the default values for the Settings struct, but the output directory should be specified instead of left blank. Building by passing a path to the CLI should still be allowed, but it should also look for a databind.toml file in the target directory. Running databind should work no matter the current directory of the command line. For example, it should work whether you're in the project's root, in the data folder, or in a functions folder.
The folder structure from databind create could also use some improvement. It should look more like this:
Currently there is a
databind create
command that can be used to make a project, but it could be easier to build. The current system that the CLI uses to build is just to pass a path, for exampledatabind ./my_project
. There are options for output, configuration, etc., but it would be nice to be able to just rundatabind
and have it build based on the configuration file.The generation of the configuration file should be able to use the default values for the Settings struct, but the output directory should be specified instead of left blank. Building by passing a path to the CLI should still be allowed, but it should also look for a
databind.toml
file in the target directory. Runningdatabind
should work no matter the current directory of the command line. For example, it should work whether you're in the project's root, in the data folder, or in a functions folder.The folder structure from
databind create
could also use some improvement. It should look more like this:This way, the generated folder will also contain the output folder instead of generating a new one.
databind create
generate adatabind.toml
with default settingsdatabind create
generate the aforementioned file structure<project_name>.databind
as the default output folder without
or something similardatabind
alone to be run in a project and detect the config filedatabind.toml
file no matter the current directory in the project