WIP: add option to use --id in commands instead of --path#46
WIP: add option to use --id in commands instead of --path#46rustysys-dev wants to merge 2 commits intoomallassi:masterfrom
Conversation
|
@omallassi I think I should add some tests for How do you think this should implemented? What should be cucumber tests, and which should use standard tests? I suppose I am not entirely sure of the testing goals for this project yet. |
|
I am also preparing another commit, because... I don't know how, but it seems I deleted one of the tests completely.... |
|
@rustysys-dev regarding "How do you think this should implemented? What should be cucumber tests, and which should use standard tests? I suppose I am not entirely sure of the testing goals for this project yet." Honestly, we are not at this level yet so we can clarify this w/ pleasure :) In my mind :
so in your case, maybe this is a mix of the two types of tests:
what are your thoughts on this? |
|
@omallassi Regarding the tests I agree, I think both will be necessary, and I can see a lot of new cucumber scenarios where the user creates/modifies ADRs using ID numbers. I have never really used a framework like cucumber, so it will be an interesting learning experiance!! I don't have much time right now during the weekdays due to needing to build a couple of new microservices at work, but I plan to get to this on the weekend. I will let you know if I run into anything that might be tricky. 😆 |
|
@rustysys-dev - let me know if I can be of any help : writing some cucumber scenario etc... |
|
@rustysys-dev - hope you are doing well. cheers. |
Changes:
AdrMetato store path and id optionsAdrMeta::build_from_metafor building ADRsget_path_by_idto get the path of an existing ADRis_idto check if aDirEntryis specified ADR id--idparameter toadr lf newto specifiy a specificidoncreate_adrAdrMeta::build_from_metaAdrMetastruct