Closed thomasdfischer closed 5 years ago
I'll give this one a try.
I'm going to hop on this issue... seems like a decent intro given what I've already done + should be quick
So, I got this to mostly work, but I'm struggling with one thing.
drake@element:~/workspace/test_base$ cfg ls
## master
templates
config: config.yaml
instances
config_dev1.yaml: config
config_dev2.yaml: config
another_one.yaml: config
yet_another_one.yaml: config
yeet_another_one.yaml: config
yeeet_another_one.yaml: config
yeeeet_another_one.yaml: config
yeeeeet_another_one.yaml: config
yeeeeeet_another_one.yaml: config
yeeeeeeet_another_one.yaml: config
yeeeeeeeet_another_one.yaml: config
yeeeeeeeeet_another_one.yaml: config
yeeeeeeeeeet_another_one.yaml: config
not_another_one.yaml: config
yet_not_another_one.yaml: config
yeet_not_another_one.yaml: config
another_test_config.yaml: config
yet_another_test_config.yaml: config
testy.yaml: config
teesty.yaml: config
teeesty.yaml: config
singletons
.gitignore
drake@element:~/workspace/test_base$ mkdir -p lol/test/heck
drake@element:~/workspace/test_base$ cd lol/test/heck
drake@element:~/workspace/test_base/lol/test/heck$ cfg ls
## master
templates
config: ../../../config.yaml
instances
../../../config_dev1.yaml: config
../../../config_dev2.yaml: config
../../../another_one.yaml: config
../../../yet_another_one.yaml: config
../../../yeet_another_one.yaml: config
../../../yeeet_another_one.yaml: config
../../../yeeeet_another_one.yaml: config
../../../yeeeeet_another_one.yaml: config
../../../yeeeeeet_another_one.yaml: config
../../../yeeeeeeet_another_one.yaml: config
../../../yeeeeeeeet_another_one.yaml: config
../../../yeeeeeeeeet_another_one.yaml: config
../../../yeeeeeeeeeet_another_one.yaml: config
../../../not_another_one.yaml: config
../../../yet_not_another_one.yaml: config
../../../yeet_not_another_one.yaml: config
../../../another_test_config.yaml: config
../../../yet_another_test_config.yaml: config
../../../testy.yaml: config
../../../teesty.yaml: config
../../../teeesty.yaml: config
singletons
../../../.gitignore
The issue is that I'm struggling to deal with files that are in the base, but in a directory within the base, for example, if we marked a file within lol/test/heck. I think if we stored the relative pathname to the baseDir of the base, this would be doable. Will it be a massive refactor / pita to do that? @thomasdfischer
Alternatively, if the intention is to only have config files in the base directory, this works fine!
Example of current behavior
The intended behavior of running
cfg ls
inside path/to/nested/dir, once this issue is resolved, is to display this: