sommerfeld-io / source2adoc

Streamline the process of generating AsciiDoc documentation from inline comments within source code files. This tool converts inline documentation into AsciiDoc files, tailored for seamless integration with Antora.
https://source2adoc.sommerfeld.io
Other
0 stars 0 forks source link

Write a service function that bridges the cobra command and the actual implementations #25

Closed sebastian-sommerfeld-io closed 3 months ago

sebastian-sommerfeld-io commented 3 months ago

Copilot prompt: i want to write a service facade which is called from the cobra commands and hides the complexity of the actual implementation. how would do this? i want to test this facade as well but I do not want to read all testdata from the filesystem. I want to mock reading the file names and paths from the actual filesystem.

some thoughs: put the service directly into internal and name them findService (or better, but append "Service")