Open andreivasiletruta opened 8 years ago
@andreivasiletruta I think this is a great addition. Btw, did you try reading an enviroment variable directly in the command?
it can be added to the config file configuration/cslang.properties
@lucian-cm I did not try to use environment variable. I guess it could work; having it in the cslang.properties will help though 👍 .
@Bonczidai @andreivasiletruta requesting an additional clarification: Considering we have this variable, the intention is to resolve relative paths in the CLI command arguments against the base path. Do we also plan to also resolve path like inputs for certain operations (like fs operations) against this base path? I think this might be tricky at this point as there is no good way to tell which input denotes a path.
I think we can go with CLI relative paths
Add a base dir option for one to configure the current "authoring working folder" so that all command will relate to it.
It will help reduce redundancy of data being inputted to the cslang commands. Check below data for redundancy.